[patch] tar -c messing file/device mode

Timo Teräs timo.teras at iki.fi
Sat Jan 17 21:58:07 UTC 2009


Rob Landley wrote:
> On Friday 16 January 2009 03:01:42 Timo Teräs wrote:
>> And in any case
>> you should be relying on umask and not some fixed mode.
> 
> When working as a normal user, it respects umask, but working as root it sets 
> all permissions even when root has a umask.

I believe umask applies to open(2) mode even on root case. Some things do go
differently when being root, but the umask does apply to root, AFAIK.
 
> Does your patch keep root's behavior correct?

So yes, behavior as root would be correct.

- Timo


More information about the busybox mailing list