From c31ef289899fb06777cdf97fd8e2bf8b22fa49cc Mon Sep 17 00:00:00 2001 From: Andreas Metzler Date: Sun, 5 Jun 2016 11:41:38 +0200 Subject: [PATCH] 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. --- NEWS | 3 +++ find/testsuite/find.gnu/samefile-p-brokenlink.exp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 4f334f55..2bc5bfbb 100644 --- a/NEWS +++ b/NEWS @@ -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 8ae1fad8..65b2dd4c 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