NSD 2.3.2 error at nsdc.sh.in

Miek Gieben miekg at atoom.net
Mon Dec 5 11:20:44 UTC 2005


[On 05 Dec, @12:15, sebastian wrote in "NSD 2.3.2 error at nsdc.sh.in ..."]
> Error Message:
> 
> /usr/local/nsd/sbin/nsdc: line 56: syntax error near unexpected token `)'
> /usr/local/nsd/sbin/nsdc: line 56: `        (umask 222; echo "database 
> locked bij PID: $$") >${lockfile}) ||'

damn! :-(

> New:
> 
> lock() {
>         ((umask 222; echo "database locked bij PID: $$") >${lockfile}) ||
>                 (cat ${lockfile} ; "echo aborting..." ; exit 1)
> }

thanks. For completeness, the patch is:
Index: nsdc.sh.in
===================================================================
--- nsdc.sh.in  (revision 1728)
+++ nsdc.sh.in  (working copy)
@@ -53,7 +53,7 @@
 }

 lock() {
-        (umask 222; echo "database locked bij PID: $$") >${lockfile}) ||
+        ((umask 222; echo "database locked bij PID: $$") >${lockfile}) ||
                 (cat ${lockfile} ; "echo aborting..." ; exit 1)
 }

--
grtz,
  - Miek

 http://www.miek.nl                      http://www.nlnetlabs.nl
  PGP Key ID: 3880 D0F6
 fingerprint: 6A3C F450 6D4E 7C6B C23C  F982 258B 85CF 3880 D0F6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20051205/4b348d15/attachment.bin>


More information about the nsd-users mailing list