Package: ddns3-client
Severity: important
Tags: patch

The init script included with this package fails to work with dash,
due to using 'source', which is a bashism. '.' is POSIX, and works
with any shell. Attached is a patch to fix this

I'd also suggest using $() instead of ``, but that's just aesthetics speaking.

-- System Information:
Debian Release: testing/unstable
  APT prefers dapper-updates
  APT policy: (500, 'dapper-updates'), (500, 'dapper-security'), (500, 'dapper')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-26-amd64-generic
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

diff -u ddns3-client-1.8/debian/init.d ddns3-client-1.8/debian/init.d
--- ddns3-client-1.8/debian/init.d
+++ ddns3-client-1.8/debian/init.d
@@ -12,7 +12,7 @@
 
 set -e
 
-if test -r $FILE; then  source $FILE; fi;
+if test -r $FILE; then . $FILE; fi
 if [ $USER. == . ] || [ $PASS. == . ] || [ $HANDLE. == . ]; then
     echo $NAME: Please edit $FILE to activate $DESC!
     exit 0

Reply via email to