Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb21eca
)
List /etc instead of /, but only if it exists and is readable.
author
Wayne Davison
<wayned@samba.org>
Wed, 23 Mar 2005 16:04:17 +0000
(16:04 +0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 23 Mar 2005 16:04:17 +0000
(16:04 +0000)
testsuite/longdir.test
patch
|
blob
|
blame
|
history
diff --git
a/testsuite/longdir.test
b/testsuite/longdir.test
index
9138acb
..
386012f
100644
(file)
--- a/
testsuite/longdir.test
+++ b/
testsuite/longdir.test
@@
-17,7
+17,11
@@
longdir="$fromdir/$longname/$longname/$longname"
makepath "$longdir" || test_skipped "unable to create long directory"
touch "$longdir/1" || test_skipped "unable to create files in long directory"
date > "$longdir/1"
makepath "$longdir" || test_skipped "unable to create long directory"
touch "$longdir/1" || test_skipped "unable to create files in long directory"
date > "$longdir/1"
-ls -la / > "$longdir/2"
+if [ -r /etc ]; then
+ ls -la /etc >"$longdir/2"
+else
+ ls -la / >"$longdir/2"
+fi
checkit "$RSYNC --delete -avH \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"
# The script would have aborted on error, so getting here means we've won.
checkit "$RSYNC --delete -avH \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"
# The script would have aborted on error, so getting here means we've won.