[Freeipa-devel] [PATCH] fixes #1193 init script related
Simo Sorce
ssorce at redhat.com
Tue Apr 26 22:03:51 UTC 2011
On Tue, 2011-04-26 at 17:08 -0400, Rob Crittenden wrote:
> Simo Sorce wrote:
> > With this patch we stop clearing the environment variables when running
> > binaries allowing for env variables to be passed down by default.
> >
> > This fixes also the init script against Fedora 15 and systemd
> >
> > Simo.
> >
>
> I think it would be better to import copy and use:
>
> if env is None:
> env = copy.deepcopy(os.environ)
> env["PATH"] = "/bin:/sbin:..."
>
> rob
Updated patch attached.
Simo.
--
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ipautil-Preserve-environment-unless-explicitly-overr.patch
Type: text/x-patch
Size: 1187 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110426/a1b7312c/attachment.bin>
More information about the Freeipa-devel
mailing list