From f5450e791da9495f8af4c2e27886f037db657b4b Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 29 Mar 2004 17:02:31 +0000 Subject: [PATCH] Try to avoid running on a system that allows us to create devices without being root (like cygwin) because rsync won't copy the devices if it is not root. --- testsuite/devices.test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testsuite/devices.test b/testsuite/devices.test index 7b4577e3..ca186eb7 100644 --- a/testsuite/devices.test +++ b/testsuite/devices.test @@ -16,6 +16,12 @@ set -x fromdir="$scratchdir/from" todir="$scratchdir/to" +case `id -u` in +'') ;; # If "id" failed, try to continue... +0) ;; +*) test_skipped "Rsync won't copy devices unless we're root" ;; +esac + # TODO: Need to test whether hardlinks are possible on this OS/filesystem mkdir "$fromdir" -- 2.34.1