[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: building util-vserver with busybox
From:       Natanael Copa <natanael.copa () gmail ! com>
Date:       2008-11-25 16:05:41
Message-ID: 1227629141.9171.5.camel () nc
[Download RAW message or body]

On Tue, 2008-11-25 at 11:51 +0100, walter harms wrote:
> i took a look into touch and it is not SUSv3.

its here but i couldnt find out if its susv3 or not:
http://www.opengroup.org/onlinepubs/009695399/utilities/touch.html

> you can make a workaround using a reference file (-r). (untested)
> very clumsy touch should be updated to support SUSv3.

In case there there is interest in touch -t, there is code here to
reuse:
http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/touch/touch.c?rev=1.23.6.1;content-type=text%2Fplain

specially stime_arg1() might be wanted.

> the chmod --reference can be emulated using stat to get the permission
> chmod $( stat -c"%a" xx ) xx

thats great!
thanks!

> 
> re,
>  wh
> 
> Natanael Copa schrieb:
> > Hi,
> > 
> > util-vserver seems ti use every gnu extension there is.
> > 
> > To be able to build util-vserver with busybox tools, touch needs -t
> > option and chmod needs --reference option.
> > 
> > Ideas for workarounds? is there other utils that can set time on a file?
> > 
> > -nc
> > 
> > _______________________________________________
> > busybox mailing list
> > busybox@busybox.net
> > http://busybox.net/cgi-bin/mailman/listinfo/busybox
> > 
> > 
> > 

_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic