Package: sn
Tags: patch
Followup-For: Bug #486057
The attached patch fixes this and another bashism in the source. I did not
test it for functionality since I am not a sn user. From what I know about
shell programming, I'm pretty sure it works though.
Best regards
Manuel
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nur sn-0.3.8.orig/contrib/auto_subscribe/snnewgroups
sn-0.3.8/contrib/auto_subscribe/snnewgroups
--- sn-0.3.8.orig/contrib/auto_subscribe/snnewgroups 2008-06-24
22:12:48.000000000 +0200
+++ sn-0.3.8/contrib/auto_subscribe/snnewgroups 2008-06-24 22:23:12.000000000
+0200
@@ -53,7 +53,7 @@
else
cmd="LIST ACTIVE"
fi
- echo -e "MODE READER\n$cmd\nquit" |
+ printf "MODE READER\n%s\nquit" "${cmd}" |
{ nc $server $port || rm $new ; } |
grep '^[a-z]' |
while read group junk
diff -Nur sn-0.3.8.orig/snnewsq.in sn-0.3.8/snnewsq.in
--- sn-0.3.8.orig/snnewsq.in 2008-06-24 22:12:48.000000000 +0200
+++ sn-0.3.8/snnewsq.in 2008-06-24 22:16:47.000000000 +0200
@@ -7,7 +7,7 @@
SNSPOOL=${SNROOT:-!!SNROOT!!}
for i in $SNSPOOL/.outgoing/*; do
- if [ "$i" == "$SNSPOOL/.outgoing/*" ]
+ if [ "$i" = "$SNSPOOL/.outgoing/*" ]
then
echo "Can't read from $SNSPOOL/.outgoing/, exiting."
break