summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2017-07-05 15:58:23 +0000
committerasomers <asomers@FreeBSD.org>2017-07-05 15:58:23 +0000
commit57bc1e1d086ee4491dabc5265f9ea895dcea3737 (patch)
tree289661aad60fcb714ba5bb2663477121ab2271cc /etc
parent00c3496e24664d2cb31a46419562f1513e1e78fc (diff)
downloadFreeBSD-src-57bc1e1d086ee4491dabc5265f9ea895dcea3737.zip
FreeBSD-src-57bc1e1d086ee4491dabc5265f9ea895dcea3737.tar.gz
MFC r319714, r319854
r319714: Add tests for ln(1) * Verify that when creating a hard link to a symbolic link, '-L' option creates a hard link to the target of the symbolic link * Verify that when creating a hard link to a symbolic link, '-P' option creates a hard link to the symbolic link itself * Verify that if the target file already exists, '-f' option unlinks it so that link may occur * Verify that if the target file or directory is a symbolic link, '-shf' option prevents following the link * Verify that if the target file or directory is a symbolic link, '-snf' option prevents following the link * Verify that '-s' option creates a symbolic link * Verify that '-w' option produces a warning if the source of a symbolic link does not currently exist Submitted by: shivansh Reviewed by: asomers, ngie Sponsored by: Google, Inc (GSoC 2017) Differential Revision: https://reviews.freebsd.org/D11084 r319854: bin/ln: Set umask appropriately before creating files for testing These changes were missed in D11084 Submitted by: shivansh Reviewed by: asomers X-MFC-With: 319714 Sponsored by: Google, Inc (GSoC 2017) Differential Revision: https://reviews.freebsd.org/D11158
Diffstat (limited to 'etc')
-rw-r--r--etc/mtree/BSD.tests.dist2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist
index ee2cd6d..920043e 100644
--- a/etc/mtree/BSD.tests.dist
+++ b/etc/mtree/BSD.tests.dist
@@ -16,6 +16,8 @@
..
expr
..
+ ln
+ ..
ls
..
mv
OpenPOWER on IntegriCloud