git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ef08b8
)
Fix the chmod-temp-dir test if /var/tmp doesn't exist.
author
Wayne Davison
<wayned@samba.org>
Sat, 22 Aug 2009 16:33:55 +0000
(09:33 -0700)
committer
Wayne Davison
<wayned@samba.org>
Sun, 13 Dec 2009 01:22:12 +0000
(17:22 -0800)
Fixes bug 6569.
testsuite/chmod-temp-dir.test
patch
|
blob
|
history
diff --git
a/testsuite/chmod-temp-dir.test
b/testsuite/chmod-temp-dir.test
index 0768f1857e1d917dc75663304454604c1227bd1c..bce544c384f34d29a65678823bfc5016617742f6 100644
(file)
--- a/
testsuite/chmod-temp-dir.test
+++ b/
testsuite/chmod-temp-dir.test
@@
-21,7
+21,11
@@
sdev=`$TOOLDIR/getfsdev $scratchdir`
tdev=`$TOOLDIR/getfsdev $tmpdir2`
if [ x$sdev = x$tdev ]; then
tmpdir2=/var/tmp
- tdev=`$TOOLDIR/getfsdev $tmpdir2`
+ if [ -d $tmpdir2 ]; then
+ tdev=`$TOOLDIR/getfsdev $tmpdir2`
+ else
+ tdev="$sdev"
+ fi
[ x$sdev = x$tdev ] && test_skipped "Can't find a tmp dir on a different file system"
fi