summaryrefslogtreecommitdiffstats
path: root/bin/ln
AgeCommit message (Collapse)AuthorFilesLines
2019-09-02More correction of section 3 layout. directory->opendir, fts->fts_open,deraadt1-3/+3
getcap->cgetent. pwcache->user_from_uid. And then repair references. ok jmc
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-2/+2
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2018-12-07format a pair of dashes as "\(em" rather than "--",schwarze1-5/+5
and a normal hyphen as "-" rather than "\-"
2016-08-10fix HISTORY; from Sevan Janiyan <venture37 at geeklan dot co dot uk>;schwarze1-3/+3
checked with http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1
2016-05-10Fix operator precedence error; OK guenther@ millert@tim1-3/+3
2015-10-10Pledge that ln only needs "stdio rpath cpath".doug1-1/+4
ok deraadt@
2015-09-11delete bogus escaping from ellipsis to forestall cargo cult effectsschwarze1-3/+3
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-3/+4
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-12-13Add .Xr to chflagsat(2)guenther1-2/+3
2014-05-23Use errc/warnc to simplify code.guenther1-5/+3
ok jca@ krw@
2014-05-07Remove the undocumented and ineffective -F option (force hard linkschwarze1-8/+4
to directory). This doesn't reduce functionality but merely results in a better error message when trying to use the option, and it simplifies the code. The -f option first appeared in AT&T Version 7 UNIX (1979), and Keith Bostic renamed it to -F for 4.3BSD-Reno in 1990 because it conflicted with System V and POSIX. Meanwhile, NetBSD, FreeBSD, and DragonFly removed it, too. From Tristan Le Guern <tleguern at bouledef dot eu>. OK guenther@ krw@
2013-12-02use a wording more usual in our manual pages.sobrado1-6/+10
ok guenther@
2013-03-12Add support for the -L and -P options.guenther2-16/+35
Based on a patch from Kent R. Spillner (kspillner (at) acm.org) ok jmc@ millert@
2011-07-26Document system calls that optionally traverse symlinks.matthew1-2/+12
2011-03-02grammar fix: from David H. Gutteridge, netbsd pr bin/44645jmc1-3/+3
2010-09-03add an EXIT STATUS section for /bin;jmc1-3/+3
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-15/+1
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc1-3/+3
updates to follow;
2009-01-04replace hardcoded exit values with .Ex macros;sobrado1-5/+3
ok jmc@
2008-05-28In -f mode, don't print a warning if source and target already pointmillert1-5/+6
to the same inode. This is consistent with other implementations. OK deraadt@ miod@ ray@
2007-09-16"source" and "target" can be either files or directories;sobrado2-17/+17
cp(1) and ln(1) must have a synopsis consistent with mkdir(1), mv(1), rmdir(1) and others ok jmc@, millert@, otto@
2007-07-31Adapted from DragonflyBSD revisions 1.10 and 1.11: warn when sourceray1-3/+34
and target are identical. When -f is specified, don't delete source. OK sobrado, feedback from paesco, kettenis, and tedu.
2007-05-31convert to new .Dd format;jmc2-4/+4
2007-05-29- consistent STANDARDS blurbjmc1-1/+11
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2006-04-25mark usage() __deadderaadt1-3/+3
2005-12-02Make usage() and manual match. OK jmc, deraadtcloder2-15/+15
2005-04-15check snprintf return value and abort if the concatenated path is toouwe1-4/+11
long instead of using the truncated path. also, use the strerror() database instead of repeating the text here. ok krw@, millert@
2004-12-17sync usagejaredy2-24/+34
manpage: - indent examples - document exit status ok jmc
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert3-19/+7
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-04The custom logic used for determining the basename of source filenino1-6/+7
was flawed in that it did not account for trailing slashes. Use basename(3) instead. Fixes invocations where target is a directory and source has a trailing slash (e.g. ln -s /tmp/ .). Ok millert@.
2003-04-13typos;jmc1-16/+16
2003-03-12more .Lideraadt1-5/+5
2002-07-04ansideraadt1-9/+5
2002-04-29Typo; Brian Poolemillert1-3/+3
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert1-6/+6
2002-02-11Initial patch.mpech1-4/+4
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
2002-01-24fix the history refsmickey1-2/+2
2002-01-24this both were in v4, before v6mickey1-2/+2
2001-12-21Initial patch for a new mdoc issue.mpech1-2/+2
Powered by @mantoya: o) kill extra line in the end of file; o) kill extra space in the end of line; o) replace blank lines with .Pp; millert@ ok
2001-11-13o) start new sentence on a new line;mpech2-4/+6
o) don't use .Pp before/after .Ss; o) wrap long lines; o) fix bogus .Xr usage; millert@ ok;
2001-10-04Grammar; also, document the true behaviour of the examples.pjanzen1-28/+50
2001-08-23Add a CAVEATS section explaining that a hard link cannot be made to a fileaaron1-1/+7
flagged immutable or append-only; pjanzen@ ok
2001-08-10Address PR 1993. This rewording has been deemed satisfactory by thehugh1-3/+3
submitter's reportedly pedantic boss.
2001-08-09Actually use the statf function pointer which I missed while hand-patching.millert1-4/+4
Also, don't mention the -h and -n flags for the 2nd usage line since they are no-ops in that case.
2001-08-09Add -h flag to prevent following a symlink to a dir as the dest.millert2-8/+44
Also add -n as an alias for -h for compat with GNU ln. Patch from Phil.Pennock@globnix.org with minor changes by me.
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manaaron1-2/+2
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-10-18Add some rudimentary EXAMPLES sections and standardize the way we displayaaron1-8/+8
existing EXAMPLES sections.
2000-03-24All man pages should have a DESCRIPTION section. Fix some formatting nitsaaron1-11/+11
while we're here.
2000-03-23Fix some formatting problems I missed before.aaron1-2/+3
1999-09-23Add an EXAMPLES section. Note that symbolic links may refer to non-existentaaron1-17/+49
files (as pointed out in symlink(2)). Fix some formatting, too.