On Thu, Feb 15, 2007 at 02:31:29PM +0100, [EMAIL PROTECTED] wrote: > Hi, > > > If somebody has created $RPM_BUILD_ROOT as a symlink that points to > > your home dir, then > > > > rm -rf $RPM_BUILD_ROOT > > > > will be save, as it either removes the symlink or fails if you don't > > have permission to remove it, but > > > > rm -rf $RPM_BUILD_ROOT/* > > > > will "clean up" your home dir. > > If somebody has created $RPM_BUILD_ROOT as a symlink, %build will correct > that securely: > > + /bin/rm -rf /var/tmp/gnucash-docs-2.0.1-build > ++ dirname /var/tmp/gnucash-docs-2.0.1-build > + /bin/mkdir -p /var/tmp > + /bin/mkdir /var/tmp/gnucash-docs-2.0.1-build
Well, if you rely on this then there is no point in the above command anyway. Robert -- Robert Schiele Dipl.-Wirtsch.informatiker mailto:[EMAIL PROTECTED] "Quidquid latine dictum sit, altum sonatur."
pgpR56KScrK3s.pgp
Description: PGP signature
