Home | History | Annotate | Download | only in ln
History log of /src/bin/ln/ln.c
RevisionDateAuthorComments
 1.40  26-Aug-2018  sevan Update usage to include -w
Match sequence as per SYNOPSIS in manual
 1.39  22-Apr-2017  kre branches: 1.39.4; 1.39.10; 1.39.12;

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.
 1.38  21-Apr-2017  szptvlfn fix number in copyright(4->3)
 1.37  21-Apr-2017  christos mark usage dead, simplify strings in it.
 1.36  20-Apr-2017  christos 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).
 1.35  29-Aug-2011  joerg branches: 1.35.26; 1.35.30;
static + __dead
 1.34  20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.33  26-May-2008  christos PR/38755: murray armfield: /bin posix programs missing setprogname and/or
setlocale
 1.32  13-Oct-2006  wiz branches: 1.32.16; 1.32.18;
Add -i to usage.
 1.31  07-Oct-2006  elad PR/22799: Hiramatsu Yoshifumi: Add -i option to /bin/ln

Slightly modified patch applied, thanks!
 1.30  26-Jun-2005  christos sprinkle a little const, and now everything compiles with WARNS=3
 1.29  25-Jun-2004  wiz Add -v to usage. Closes PR 25862 by Kouichirou Hiratsuka.
 1.28  05-Jan-2004  jmmv Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
 1.27  04-Jan-2004  jschauma remove unused code left from printescaped() backput as pointed out by Jeff
Ito in PR bin/23969 and PR bin/23970.
 1.26  14-Sep-2003  jschauma Following private discussion with kleink@ and hubertf@ and public discussion
on tech-userlevel@, back out printescaped() functionality.
kleink: ``We sell rope.''
 1.25  21-Aug-2003  jschauma Fix two more memory leaks found by Hubert Feyrer.
 1.24  13-Aug-2003  itojun use bounded string op
 1.23  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.22  04-Aug-2003  jschauma 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.
 1.21  27-Dec-2002  jrf The previious ln commit did not have the change for -v in the source. Here is the working code.
 1.20  30-Oct-2002  kleink 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.
 1.19  16-Sep-2001  wiz ANSIfy, KNF, by Petri Koistinen.
 1.18  19-Feb-2001  cgd convert to use getprogname()
 1.17  04-Feb-2001  christos fix nested extern.
 1.16  05-Sep-1999  hubertf Allow hardlinks to symlinks.

Reviewed by: Bill Studenmund, Klaus Klein
 1.15  28-Jul-1998  mycroft Delint.
 1.14  05-Nov-1997  cgd lint
 1.13  20-Jul-1997  christos Fix compiler warnings.
Add WARNS=1
 1.12  16-May-1997  mycroft Correct bogons and omissions in previous change.
Also, remove the `-F' option, which was undocumented and is no longer useful.
 1.11  16-May-1997  jtk add -h flag to suppress following of symbolic links
 1.10  21-Mar-1995  cgd convert to new RCS id conventions.
 1.9  22-Sep-1994  mycroft Merge 4.4-Lite version.
 1.8  08-Feb-1994  mycroft Fix core dump when source is a directory.
 1.7  27-Jan-1994  jtc Converted to use standard err()/warn() error messages functions.
 1.6  27-Jan-1994  jtc Pass through FlexeLint
 1.5  17-Aug-1993  jtc Make 1003.2-1992 compliant by implementing -f (force) option.
 1.4  01-Aug-1993  mycroft Add RCS identifiers.
 1.3  23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2  22-Mar-1993  cgd added rcs ids to all files
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.32.18.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.32.18.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.32.16.1  04-Jun-2008  yamt sync with head
 1.35.30.1  21-Apr-2017  bouyer Sync with HEAD
 1.35.26.1  26-Apr-2017  pgoyette Sync with HEAD
 1.39.12.3  21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.39.12.2  21-Apr-2020  martin Sync with HEAD
 1.39.12.1  10-Jun-2019  christos Sync with HEAD
 1.39.10.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.39.4.1  28-Aug-2018  martin Pull up following revision(s) (requested by sevan in ticket #992):

external/bsd/top/dist/top.1.in: revision 1.11
sbin/gpt/main.c: revision 1.12
sbin/amrctl/amrctl.c: revision 1.11
bin/df/df.c: revision 1.93
sbin/fsck_ext2fs/fsck_ext2fs.8: revision 1.21
sbin/fsck_ext2fs/main.c: revision 1.38
bin/ksh/ksh.Man: revision 1.26
bin/ln/ln.c: revision 1.40
bin/df/df.1: revision 1.48
bin/df/df.1: revision 1.49

Document the WCPU field.

Match SYNOPSIS with usage()

-G cannot be specified alongside -i or -P.
Heads up by <leot>

Add -l to SYNOPSIS

Update usage to include -w

Match sequence as per SYNOPSIS in manual

Remove reference to -c flag which was never implemented.

Remove references to -c flag which was never included.

Add the -T flag to usage()

RSS XML Feed