Re: [PATCH 35/48] find has a builtin delete action. Use it instead of exec'ing rm.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 2010-06-30 at 17:58 -0400, Daenyth Blank wrote:
> On Wed, Jun 30, 2010 at 17:47, Victor Lowther <victor.lowther@xxxxxxxxx> wrote:
> > ---
> >  rc.sysinit |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/rc.sysinit b/rc.sysinit
> > index 319ea60..037a9f2 100755
> > --- a/rc.sysinit
> > +++ b/rc.sysinit
> > @@ -277,7 +277,7 @@ stat_busy "Removing Leftover Files"
> >  /bin/rm -f /var/lock/* &>/dev/null
> >  /bin/rm -rf /tmp/* /tmp/.* &>/dev/null
> >  /bin/rm -f /forcefsck &>/dev/null
> > -(cd /var/run && /usr/bin/find . ! -type d -exec /bin/rm -f -- {} \; )
> > +(cd /var/run && /usr/bin/find . \! -type d -delete  )
> >  : >| /var/run/utmp
> >  /bin/chmod 0664 /var/run/utmp
> >  # Keep {x,k,g}dm happy with xorg
> > --
> > 1.7.1
> >
> >
> 
> I don't think this is portable though.

How portable are you looking for?

-- 
Victor Lowther
LPIC2 UCP RHCE 


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux