building util-vserver with busybox

Natanael Copa natanael.copa at gmail.com
Tue Nov 25 16:05:41 UTC 2008


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 at busybox.net
> > http://busybox.net/cgi-bin/mailman/listinfo/busybox
> > 
> > 
> > 




More information about the busybox mailing list