summaryrefslogtreecommitdiffstats
path: root/bin/ln
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly add unmarked bin/ binaries to the runtime package.gjb2016-02-091-0/+1
| | | | | | | | Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate package, which requires pre-install/post-install scripts, to be added later. Sponsored by: The FreeBSD Foundation
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-11/+12
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge from headsjg2013-09-051-4/+4
| |\
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync with HEAD.obrien2013-02-081-1/+1
| |\ \
| | \ \
| | \ \
| *-. \ \ Sync from headsjg2012-11-041-1/+65
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | |/ / / | |/| | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | symlink(7): Mention chflagsat() (can take AT_SYMLINK_NOFOLLOW).jilles2015-02-161-1/+2
| | | | | | | | | | | | | | | | | | | | MFC after: 1 week
* | | | | Add futimens and utimensat system calls.jilles2015-01-231-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The core kernel part is patch file utimes.2008.4.diff from pluknet@FreeBSD.org. I updated the code for API changes, added the manual page and added compatibility code for old kernels. There is also audit and Capsicum support. A new UTIME_* constant might allow setting birthtimes in future. Differential Revision: https://reviews.freebsd.org/D1426 Submitted by: pluknet (partially) Reviewed by: delphij, pluknet, rwatson Relnotes: yes
* | | | | symlink(7): Note that stat(1) does not follow symlinks by default.jilles2014-12-291-9/+8
| |_|_|/ |/| | | | | | | | | | | MFC after: 1 week
* | | | Add 'static' where able.eadler2013-06-021-4/+4
| |_|/ |/| |
* | | Fix wording nit.gjb2012-12-281-1/+1
| |/ |/| | | | | | | | | PR: 174787 Submitted by: Cody Rank MFC after: 3 days
* | Add a couple of examples.joel2012-11-021-1/+65
|/ | | | Obtained from: OpenBSD
* Put some static keywords in the source code.ed2011-10-311-9/+9
| | | | | | For these simple utilities, it doesn't harm to make all global variables static. In fact, this allows the compiler to perform better forms of optimisation and analysis.
* bin: Prefer strrchr() to rindex().jilles2011-03-151-1/+1
| | | | This removes the last index/rindex usage from /bin.
* Spelling fixes.joel2010-07-311-1/+1
|
* symlink(7): Add lpathconf(2) and *at system calls.jilles2010-04-251-2/+27
| | | | MFC after: 1 week
* symlink(7): The ownership of symlinks is used by the system,jilles2010-04-251-3/+3
| | | | | | | | | in at least three ways, so do not say it is ignored: * who may delete/rename a symlink in a sticky directory * who may do lchflags(2)/lchown(2)/lchmod(2) * whose inode quota is charged MFC after: 1 week
* ln: Allow a trailing slash when creating a link to a directory.jilles2010-04-211-14/+13
| | | | | | | | | | | | | | | | | | | | In the 'ln source... directory' synopsis, the basename of each source determines the name of the created link. Determine this using basename(3) instead of strrchr(..., '/') which is incorrect if the pathname ends in a slash. The patch is somewhat changed to allow for basename(3) implementations that change the passed pathname, and to fix the -w option's checking also. The code to compare directory entries only applies to hard links, which cannot be created to directories using ln. Example: ln -s /etc/defaults/ /tmp This should create a symlink named defaults. PR: 121568 Submitted by: Ighighi MFC after: 1 week
* ln: Refuse deleting a directory entry by hardlinking it to itself.jilles2010-04-171-2/+59
| | | | | | | | | | | | | | Two pathnames refer to the same directory entry iff the directories match and the final components' names match. Example: (assuming file1 is an existing file) ln -f file1 file1 This now fails while leaving file1 intact. It used to delete file1 and then complain it cannot be linked because it is gone. With -i, this error is detected before the question is asked. MFC after: 2 weeks
* Allow creating hard links to symlinks using ln(1).jilles2009-07-192-22/+41
| | | | | | | | This implements the POSIX.1-2008 -L and -P flags. The default remains to create hard links to the target of symlinks. Approved by: re (kib), ed (mentor)
* Clean up a bit of confusing language and improve .Nd.trhodes2009-01-131-4/+9
| | | | | PR: 47818 Reviewed by: keramida
* Unbreak last commit to ln for amd64.keramida2008-06-071-1/+1
| | | | | | | | Cast string precision to `int'. amd64 systems warn about the field precision being `long int' if we don't, and pathnames are normally short enough to fit in an `int'. Noticed by: pav
* Add a -w warning flag to ln(1). When the -w option is enabled,keramida2008-06-062-7/+47
| | | | | | | | | | | ln(1) checks to see if the source of a symlink, i.e. the file it should point to actually exists. The default is the old ln behavior, that does not check, to avoid surprising people who may be using ln(1) in scripts or other non-interactive places. PR: bin/7265 Submitted by: Joel Ray Holveck, detlev!joelh at mail.camalott.com MFC after: 2 weeks
* Express in the usage() and SYNOPSIS that -F depends on -s, andru2007-11-172-4/+8
| | | | that -f and -i are exclusive.
* Swap "source"/"target" where appropriate, to match documentation.ru2007-11-171-38/+38
|
* Add '-F' option which allows to delete existing empty directories, whenglebius2006-02-142-8/+50
| | | | | | | creating symbolic links. PR: bin/92149 Submitted by: Eugene Grosbein <eugen grosbein.pp.ru>
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-091-3/+3
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-7/+7
| | | | Sort standard sections in the (documented) preferred order.
* /*- or .\"- or #- to begin license clauses.imp2005-01-103-1/+3
|
* Deal with double whitespace.ru2004-07-031-6/+6
|
* Mechanically kill hard sentence breaks.ru2004-07-022-8/+13
|
* Removed trailing whitespace.ru2004-07-021-1/+1
|
* Remove clause 3 from the UCB licenses.markm2004-04-063-12/+0
| | | | OK'ed by: imp, core
* Quiet warnings about copyright[].obrien2003-05-011-2/+2
|
* s/filesystem/file system/ as discussed on -developerstrhodes2002-08-212-5/+5
|
* Claim conformance to 1003.2-1992 instead of 1003.1-2001 due to doubtstjr2002-08-121-1/+1
| | | | | | | raised by Lukas Ertl over symbolic link handling. PR: 41576 MFC after: 1 week
* Fix an easy WARNS.markm2002-07-311-1/+1
|
* Consistently use __FBSDIDobrien2002-06-301-2/+2
|
* Check that snprintf() does not truncate the destination pathname whentjr2002-06-291-1/+6
| | | | linking into a directory.
* ln(1)'s symbolic link handling conforms to IEEE Std. 1003.1-2001, notetjr2002-06-251-1/+1
| | | | this in the Standards section.
* Correctly mark up the final command line arguments with the Ar macro fortjr2002-06-251-2/+2
| | | | the last two synopsis forms.
* Reject options, handle "--" end-of-options marker in link(1).tjr2002-05-301-4/+7
|
* mdoc(7) police: punctuation.ru2002-05-291-3/+3
|
OpenPOWER on IntegriCloud