Don't use the unknown which command, instead try pwd as /bin/pwd and
authordrepper <drepper>
Tue, 11 Nov 1997 23:17:24 +0000 (23:17 +0000)
committerdrepper <drepper>
Tue, 11 Nov 1997 23:17:24 +0000 (23:17 +0000)
/usr/bin/pwd.

io/ftwtest-sh

index 508c850..0ae6ecd 100644 (file)
@@ -108,8 +108,7 @@ LD_LIBRARY_PATH=$objpfx $ldso $testprogram --chdir $tmpdir |
     sort > $testout
 
 # perhaps $tmp involves some symlinks...
-pwdprogram=`which pwd`
-tmpreal=`( cd $tmp ; $pwdprogram )`
+tmpreal=`cd $tmp; /bin/pwd 2>/dev/null || /usr/bin/pwd`
 
 cat <<EOF | cmp $testout - || exit 1
 base = "$tmp/", file = "ftwtest.d", flag = FTW_D, cwd = $tmpreal, level = 0