Re: [PATCH] install: Fix chown resetting suid/sgid bits from chmod

2023-10-02 Thread Denys Vlasenko
Applied, thank you. On Sat, Sep 23, 2023 at 1:57 PM Nero wrote: > > Since Linux 2.2.13, chown(2) resets the suid/gid bits for all users. > This patch changes the ordering so that chmod gets called after chown. > > This behavior follows GNU coreutils. > > Signed-off-by: Nero > --- >

[PATCH] install: Fix chown resetting suid/sgid bits from chmod

2023-09-23 Thread Nero
Since Linux 2.2.13, chown(2) resets the suid/gid bits for all users. This patch changes the ordering so that chmod gets called after chown. This behavior follows GNU coreutils. Signed-off-by: Nero --- coreutils/install.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-)