Skip to content

Commit

Permalink
Make sure that /etc and /bin actually are readable before we try
Browse files Browse the repository at this point in the history
to list them.
  • Loading branch information
Wayne Davison committed Sep 16, 2004
1 parent ab217f7 commit a7a1cc2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions testsuite/rsync.fns
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,17 @@ hands_setup() {
mkdir "$fromdir/dir/subdir"
echo some data > "$fromdir/dir/subdir/foobar.baz"
mkdir "$fromdir/dir/subdir/subsubdir"
ls -ltr /etc > "$fromdir/dir/subdir/subsubdir/etc-ltr-list"
if [ -r /etc ]; then
ls -ltr /etc > "$fromdir/dir/subdir/subsubdir/etc-ltr-list"
else
ls -ltr / > "$fromdir/dir/subdir/subsubdir/etc-ltr-list"
fi
mkdir "$fromdir/dir/subdir/subsubdir2"
ls -lt /bin > "$fromdir/dir/subdir/subsubdir2/bin-lt-list"
if [ -r /bin ]; then
ls -lt /bin > "$fromdir/dir/subdir/subsubdir2/bin-lt-list"
else
ls -lt / > "$fromdir/dir/subdir/subsubdir2/bin-lt-list"
fi

# echo testing head:
# ls -lR "$srcdir" | head -10 || echo failed
Expand Down

0 comments on commit a7a1cc2

Please sign in to comment.