use-test-binary
authorLTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>
Mon, 9 Jan 2017 20:07:59 +0000 (20:07 +0000)
committerVagrant Cascadian <vagrant@debian.org>
Mon, 9 Jan 2017 20:07:59 +0000 (20:07 +0000)
## 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 58e74837479bdee97a6d34f8a6c39fb868d7fe62..f48cfcb870f087c18aad2b0bc5a427e1ca83d911 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