Re: Proposed chown(8)/chgrp(1) enhancement

2023-04-29 Thread Steffen Nurpmeso
Paul Goyette wrote in : ... | ( p->fts_statp->st_mode && 07000 ) == 0)) ^^ --steffen | |Der Kragenbaer,The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert

Re: Proposed chown(8)/chgrp(1) enhancement

2023-04-28 Thread наб
On Fri, Apr 28, 2023 at 11:25:03PM +, RVP wrote: > On Fri, 28 Apr 2023, Paul Goyette wrote: > > I propose the attached enhancement to chown/chgrp to avoid setting > > a new user/group value if the desired values are already set. The > > change is pretty simple. > I don't think we need a flag f

Re: Proposed chown(8)/chgrp(1) enhancement

2023-04-28 Thread Joerg Sonnenberger
Am Fri, Apr 28, 2023 at 11:25:03PM + schrieb RVP: > On Fri, 28 Apr 2023, Paul Goyette wrote: > > > I propose the attached enhancement to chown/chgrp to avoid setting > > a new user/group value if the desired values are already set. The > > change is pretty simple. > > > > I don't think we n

Re: Proposed chown(8)/chgrp(1) enhancement

2023-04-28 Thread Paul Goyette
On Sat, 29 Apr 2023, ?? wrote: On Fri, Apr 28, 2023 at 11:25:03PM +, RVP wrote: On Fri, 28 Apr 2023, Paul Goyette wrote: I propose the attached enhancement to chown/chgrp to avoid setting a new user/group value if the desired values are already set. The change is pretty simple. I don

Re: Proposed chown(8)/chgrp(1) enhancement

2023-04-28 Thread RVP
On Fri, 28 Apr 2023, Paul Goyette wrote: I propose the attached enhancement to chown/chgrp to avoid setting a new user/group value if the desired values are already set. The change is pretty simple. I don't think we need a flag for this. I think what you're proposing should just be the defau

Proposed chown(8)/chgrp(1) enhancement

2023-04-28 Thread Paul Goyette
Seems to me that a recursive chown/chgrp, in a large directory with _most_but_not_all files already set to the desired owner/group, can be rather wastefull. As near as I can tell, the kernel is called for every file, even those for whom the update of attributes is effectively a no-op. Further, t