[Slackbuilds-users] Fwd: Re: slackbuild script dangers [volkerdi at slackware.com]

Martin Lefebvre dadexter at gmail.com
Sun Nov 5 12:46:21 UTC 2006


On 11/5/06, Eric Hameleers <alien at sox.homeip.net> wrote:
>
> Mark Flacy wrote:
>
> >Greetings,
> >
> >You might find the attached email interesting.  I intend to modify any
> scripts which I write according to Pat's response.
> >
> >
> >
> > Mark Flacy wrote:
> >
> >> Greetings,
> >>
> >> I can't really say this is a bug, but it has bitten me in the behind
> >> a few times.  The scripts will 'cd' into /tmp, explode the source
> >> archive, 'cd' into the new source directory and then recursively
> >> chown everything in there to root.root.
> >>
> >> If, for some reason, the "explode the source archive" didn't work you
> >> end up recursively chowning *everything* in /tmp to root.root.  That
> >> includes all the user-specific directories used by KDE, Gnome,
> >> ssh-agent, and so on.  If you aren't root, things stop working.
> >> That's really annoying.  :-)
> >
> The SBo scripts build everything in "/tmp/SBo" which alleviates the
> potential problem quite a lot.


I also use set -e, which will halt the script on ANY errors

-- 
Martin Lefebvre
eMail: dadexter at gmail.com

LinuxWorldNet.Com: Linux blogs for everyone.

Visit SlackBuilds.Org for all your SlackBuild needs!
SlackBuilds.Org: LinuxPackages.Net done right.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20061105/77feb65e/attachment-0002.html 


More information about the Slackbuilds-users mailing list