Try to handle 'test -L' on Sun.
[rsync/rsync.git] / testsuite / rsync.fns
index 41f3354..f9660d6 100644 (file)
@@ -241,5 +241,10 @@ test_xfail() {
     exit 78
 }
 
+# Test whether something is a link, allowing for shell peculiarities
+is_a_link() {
+    test -L "$1" || test -h "$1" || /usr/bin/test -L "$1" || /usr/bin/test -h "$1"
+}
+
 # be reproducible
 umask 077
\ No newline at end of file