Re: Bug#9582: suidmanager 0.6 uploaded to master.debian.org
I have tried it and set -e is not propagated into a subprocess.
This is the script I ran successfully:
suidregister /etc/exports clameter clameter 4755
Please investigate what is wrong with your system.
On Fri, 16 May 1997, Karl M. Hegbloom wrote:
>>>>>> "Christoph" == Christoph Lameter <firstname.lastname@example.org> writes:
> Christoph> To my knowledge set -e
> Christoph> is only valid for the currently executing scripts and
> Christoph> not a subshell.
> Try it and see.
> It is why `suidregister` is not working when called from postinst
>scripts. The grep in `suidregister` fails, returning code 1 when
>it cannot find the regex in the "/etc/suid.conf" file, and since '-o
>errexit' (aka 'set -e') is on, the `suidregister` script exits.
> I think that this is counterintuitive, and that '-o errexit' should
>have file-local (and even function-local) scope. It seems like a bug
>in BASH to me.
> `suidregister` works fine from a commandline, since '-o errexit' is
>not set then. After it's been run once, and the entry that gets
>`grep`ped for has been written to "/etc/suid.conf", it works fine from
>inside a postinst too, since then the `grep` doesn't return code 1, as
>it has something to find this time.
> In the line that reads "X=..."
> Or the shell will exit on any error return; I tried it.
>Karl M. Hegbloom <email@example.com>
>Portland, OR USA
>Debian GNU 1.2 Linux 2.1.36 AMD K5 PR-133
--- +++ --- +++ --- +++ --- +++ --- +++ --- +++ --- +++ ---
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
firstname.lastname@example.org . Trouble?
e-mail to email@example.com .