See attached patch. From Debian bug: http://bugs.debian.org/530064
Created attachment 4203 [details] Fix bashism
Created attachment 4204 [details] Fix bashism
All bits except (as I just noticed) the patch to 00.ctdb have been pushed upstream and will be in 1.0.91 if I am not mistaken. Michael
About the 00.ctdb bit: you check for the existence of the time command with the sequence "command -v time" . How portable is it? It is in bash, it is in dash (i.e. POSIX shell?) But is it also in vanilla "sh"? Ronnie, Mathieu, What to do about that? Michael
(In reply to comment #4) > About the 00.ctdb bit: > > you check for the existence of the time command with the sequence > "command -v time" . I don't use this part of the patch (see http://svn.debian.org/wsvn/pkg-samba/trunk/ctdb/debian/patches/50-fix-bashism.diff) as the package now installs the "time" package.
Ok, so I think we can close this bug, right. The submitted patches will be in 1.0.91. Mathieu - please reopen if problems persist. Michael
I'm reopening. There is one more in events.d/11.natgw: - if [ "$NATGWMASTER" == "-1" ]; then + if [ "$NATGWMASTER" = "-1" ]; then
Created attachment 4753 [details] Fix a bashism in 11.natgw
(In reply to comment #8) > Created an attachment (id=4753) [details] > Fix a bashism in 11.natgw This has been included in 1.0.105
> This has been included in 1.0.105 Thanks!
Created attachment 5458 [details] Fix some more bashisms
Reopening. https://bugzilla.samba.org/attachment.cgi?id=5458 should be applied
Done (once again) http://git.samba.org/?p=sahlberg/ctdb.git;a=commitdiff;h=3d82ca5b1b8ba2770c739493aa0cdd34bb4827d8
I'm reopening this one. See attached patch 0001-Fix-bashism.patch.
Created attachment 6342 [details] Fix bashism in config/events.d/60.ganesha
(In reply to comment #15) > Created attachment 6342 [details] > Fix bashism in config/events.d/60.ganesha thanks. pushed to master. Ronnie: This applies to the 1.2 branches. I suggest picking it for the releases. ==> assigning to Ronnie.
Closing again: http://git.samba.org/?p=ctdb.git;a=commitdiff;h=f4d5a5810f1a840a41c3541a3b822fce44d41e9a