use-test-binary
authorLTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>
Tue, 31 Mar 2015 23:54:20 +0000 (00:54 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Tue, 31 Mar 2015 23:54:20 +0000 (00:54 +0100)
## use-test-binary.dpatch by Vagrant Cascadian <vagrant@freegeek.org>
##
## DP: use /usr/bin/test instead of relying on the shell test builtin, as bash
## DP: and dash behave inconsistantly. works around
## DP: http://bugs.debian.org/539909

Gbp-Pq: Name use-test-binary

client/share/ltsp/init-ltsp.d/50-cron

index 2a495907c20babc2415d087026cee641d4ecb0ec..c9de757c65ac664201e08323087b6e81b83fac5b 100644 (file)
@@ -1,5 +1,5 @@
 CRON_FILE=/etc/cron.d/ltsp
-if [ ! -w "/etc/cron.d" ]; then
+if ! /usr/bin/test -w "/etc/cron.d" ; then
     echo "Warning: /etc/cron.d is not writeable."
     return 1
 fi