diff options
| author | Andreas Metzler <ametzler@bebt.de> | 2016-06-05 11:41:38 +0200 |
|---|---|---|
| committer | James Youngman <jay@gnu.org> | 2019-09-01 09:22:56 +0100 |
| commit | c31ef289899fb06777cdf97fd8e2bf8b22fa49cc (patch) | |
| tree | 8327c22df8ca826556217dcd555d5bf9ce0a83c7 | |
| parent | 13c1d7faa5cd1ad2b3a2367212677476fb96fc81 (diff) | |
| download | findutils-c31ef289899fb06777cdf97fd8e2bf8b22fa49cc.tar.gz | |
Fix testsuite error on hurd and BSD related to ln
* find/testsuite/find.gnu/samefile-p-brokenlink.exp: Pass "-P" option to
enforce generation of hard link to symlink. link() behavior is
"implementation-defined" by POSIX and BSD/hurd chose a different behavior
than Linux.
This fixes http://bugs.debian.org/826357, https://savannah.gnu.org/bugs/index.php?48135
Also fix ln -s invocation to generate a valid symlink.
* NEWS: Mention that Savannah bug #48135 is fixed.
| -rw-r--r-- | NEWS | 3 | ||||
| -rw-r--r-- | find/testsuite/find.gnu/samefile-p-brokenlink.exp | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -2,6 +2,9 @@ GNU findutils NEWS - User visible changes. -*- outline -*- (allout) * Major changes in release ?.?.?, YYYY-MM-DD +** Bug Fixes + +#48135: Fix testsuite error on Hurd and BSD related to ln * Major changes in release 4.7.0, 2019-08-29 diff --git a/find/testsuite/find.gnu/samefile-p-brokenlink.exp b/find/testsuite/find.gnu/samefile-p-brokenlink.exp index 8ae1fad..65b2dd4 100644 --- a/find/testsuite/find.gnu/samefile-p-brokenlink.exp +++ b/find/testsuite/find.gnu/samefile-p-brokenlink.exp @@ -3,9 +3,9 @@ exec rm -rf tmp exec mkdir tmp exec touch tmp/file1 exec ln tmp/file1 tmp/link -exec ln -s tmp/file1 tmp/symlink +exec ln -s file1 tmp/symlink exec ln -s tmp/file2 tmp/broken -exec ln tmp/broken tmp/blink +exec ln -P tmp/broken tmp/blink find_start p { -P tmp -samefile tmp/broken -print} exec rm -rf tmp |
