summaryrefslogtreecommitdiffstats
path: root/bin/ln/ln.c
Commit message (Collapse)AuthorAgeFilesLines
* Use PATH_MAX in preference to MAXPATHLEN.imp2001-05-291-1/+2
| | | | | Also sort declarations per style(9) (big arrays come last) while I'm in the area.
* Silence WARNS=2 and BDECFLAGS on i386 and alphakris2001-05-201-4/+5
| | | | MFC After: 1 week
* Bring in `-h' compatability option and its alias `-n' to match NetBSD and GNUsobomax2001-04-261-8/+27
| | | | | | | semantics. style(9) Reviewed by: Obtained from: NetBSD
* Fix style bugs and inconsistencies introduced in rev 1.16.sheldonh2000-08-171-12/+18
| | | | Submitted by: bde
* Don't explicitly declare optarg and optind. These are declared inimp2000-08-161-1/+0
| | | | unistd.h, which is already included.
* Add the -i option, as found in rm(1), which provides an interactivesheldonh2000-08-141-5/+29
| | | | | | | mode in which the user is prompted for confirmation before an existing file is replaced. Submitted by: alex
* Add link(1) and unlink(1) as special cases of ln(1) and rm(1)sheldonh1999-12-201-3/+21
| | | | | | | | | | | | respectively, in accordance with SUSv2. This differs from the approach taken in NetBSD, but provides less obscure error messages in at least the EISDIR case and does not take up additional disk space for new binaries. PR: 13071 PR: 13074 Requested by: James Howard <howardjp@wam.umd.edu>
* Add verbose processing flag.obrien1999-09-111-3/+11
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Correct use of .Nm. Add rcsid.charnier1998-05-151-3/+5
|
* Cosmetic change in usage string.charnier1997-06-061-3/+4
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* -Wall cleaning.steve1996-12-141-3/+3
|
* Nuke the undocumented -F flag, since it doesn't do anything anymore.peter1996-05-241-9/+6
| | | | | It used to allow root to hard-link directories (and screw up programs that expexted the ".." entry to point to the parent dir)
* Use lstat() instead of stat() for checking if the final source file exists,bde1994-12-061-3/+3
| | | | | so that `ln -fs' works when the source is a symlink pointing to a non- existent file.
* Added $Id$dg1994-09-241-0/+2
|
* fix ln to accept -f again. Thanks Bruce. Seems that Joe Grosch isn'tphk1994-09-201-1/+1
| | | | | quite as safe as I thought. I will have to look much closer on his patches. Damn.
* /home/phk/jgphk1994-09-201-2/+2
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+164
OpenPOWER on IntegriCloud