What's up with chown.c doing a chmod?

Rob Landley rob at landley.net
Sat Dec 17 22:44:25 UTC 2005


In coreutils/chown.c, why doed fileAction call chmod(fileName, 
statbuf->st_mode);  Isn't statbuf what the file _already_ has?  Does the file 
need some kind of reassurance?  (Attaboy, file!)

I'm confused.  Is chmod corrupting the permissions when we didn't ask it to?  
Why is the code doing that?

Rob
(Off fixing bug 603...)
-- 
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.



More information about the busybox mailing list