Commit Graph

68 Commits

Author SHA1 Message Date
sevan 60a4b4b431 Update usage to include -w
Match sequence as per SYNOPSIS in manual
2018-08-26 23:01:06 +00:00
kre 3f471a638f When called as "link" (not currently installed that way) always simply
do a link(2) sys call, never use the internal linkit() routine, which
allows for a destination directory and installs the link inside (and more.)

This makes ln's "link" variant comply with its (currently commented out)
section if its manual page, and also makes it identical to /usr/sbin/link.
2017-04-22 12:22:31 +00:00
szptvlfn 56d7f82578 fix number in copyright(4->3) 2017-04-21 14:46:31 +00:00
christos a6427274ca mark usage dead, simplify strings in it. 2017-04-21 11:28:35 +00:00
christos 4c09db682e - fix number in copyright
- comment out "simplified link" for now.
2017-04-20 22:57:30 +00:00
christos 5d4045c853 Replace ours with the FreeBSD version; it is more versatile and handles
errors better (does not remove files if it is going to fail when -f).
2017-04-20 21:50:50 +00:00
sevan 2d92cac8a1 ln was there from v1.
Confirmed from the TUHS & cat-v.org hosted copies of man pages
2016-08-10 17:38:39 +00:00
wiz 3957bea1ef Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
yamt 77975fd4f2 note what "other ln implementations" is. 2011-10-24 16:15:46 +00:00
joerg 30176a91ba static + __dead 2011-08-29 14:38:30 +00:00
wiz b8f8abf38a Typographical improvement by David H. Gutteridge in PR 44645. 2011-02-27 06:02:07 +00:00
lukem 2fe2731d3f Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
christos 9655f5c24c PR/38755: murray armfield: /bin posix programs missing setprogname and/or
setlocale
2008-05-26 14:21:08 +00:00
jnemeth e942f6d60e PR/37243 - Joerg Niendorf -- fixup botched addition of -i option 2007-10-29 11:22:59 +00:00
wiz dd94284f1e Add -i to usage. 2006-10-13 20:37:10 +00:00
elad cf245f1ee7 PR/22799: Hiramatsu Yoshifumi: Add -i option to /bin/ln
Slightly modified patch applied, thanks!
2006-10-07 10:05:25 +00:00
christos 6310b59691 sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
wiz b982defe98 Add -v to usage. Closes PR 25862 by Kouichirou Hiratsuka. 2004-06-25 14:25:33 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
jschauma ad8530d1eb remove unused code left from printescaped() backput as pointed out by Jeff
Ito in PR bin/23969 and PR bin/23970.
2004-01-04 16:04:18 +00:00
jschauma 6a75fbb636 Following private discussion with kleink@ and hubertf@ and public discussion
on tech-userlevel@, back out printescaped() functionality.
kleink: ``We sell rope.''
2003-09-14 19:20:16 +00:00
jschauma ca5d0a41d2 Fix two more memory leaks found by Hubert Feyrer. 2003-08-21 04:30:25 +00:00
itojun e1e0321817 use bounded string op 2003-08-13 02:51:20 +00:00
agc b5b2954259 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
jschauma 458ed23412 As discusses a little while back on tech-userlevel:
If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printable
characters.

While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.
2003-08-04 22:31:21 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz 5673b28631 Whitespace nits. 2002-12-28 21:15:24 +00:00
jrf 46164a8a95 The previious ln commit did not have the change for -v in the source. Here is the working code. 2002-12-27 03:50:05 +00:00
jrf 1f6c14f0d6 Added verbose extension and updated manual pages. Changes approved by Klaus Klein. 2002-12-26 21:37:17 +00:00
kleink ade418e6fd Revert rev. 1.16, as per PR kern/17411.
While a hard link to a symbolic link is not ruled out by POSIX-2001,
the ln(1) utility (sans -s) is to perform equivalent to the link(2)
function on its operands, which includes the resolution of symbolic
links in source_file arguments.
2002-10-30 22:52:10 +00:00
wiz 14dfaa4b03 New policy: New sentences start on a new line.
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
2002-09-25 15:18:36 +00:00
wiz f64af5cae0 ANSIfy, KNF, by Petri Koistinen. 2001-09-16 22:14:40 +00:00
cgd 668a4dd967 convert to use getprogname() 2001-02-19 22:39:39 +00:00
christos 18d76c325c fix nested extern. 2001-02-04 19:32:26 +00:00
bjh21 22fd223bad Document POSIX.2 conformance.
In the second form, the destination directory isn't optional.
Formatting cleanups.
2000-10-14 18:31:57 +00:00
jdolecek 945fe691ae Move symlink.7 to share/man/man7/, where it belongs 1999-09-27 17:44:49 +00:00
jdolecek 3fda74e8c8 add lutimes(2) to list of syscalls not following symlinks
Noted by Christos Zoulas <christos@NetBSD.org>
1999-09-26 20:45:41 +00:00
hubertf abda8d9447 Allow hardlinks to symlinks.
Reviewed by: Bill Studenmund, Klaus Klein
1999-09-05 23:34:39 +00:00
garbled f124765044 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:25:43 +00:00
fair 1768da524f Patch per PR#6166 and clean up some nroff bogons. 1998-12-13 19:34:44 +00:00
mycroft 9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
perry 6982982f8d macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:39:31 +00:00
cgd bad15fd37f lint 1997-11-05 21:17:14 +00:00
enami c3872193cf Fix .Nm usage. 1997-10-20 08:50:59 +00:00
enami 8750a9d231 Partial .Nm usage fix. XXX 1997-10-20 08:48:09 +00:00
christos 23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
christos 81aa60edd5 Fix compiler warnings.
Add WARNS=1
1997-07-20 17:44:40 +00:00
mycroft 8da4c69623 Correct bogons and omissions in previous change.
Also, remove the `-F' option, which was undocumented and is no longer useful.
1997-05-16 14:44:01 +00:00
jtk d697818b06 add -h flag to suppress following of symbolic links 1997-05-16 02:59:38 +00:00
mikel b7679caa29 add xref to symlink(2) 1997-03-25 05:30:29 +00:00