[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#39236: [musl] coreutils cp mishandles error return from lchmod

From: Paul Eggert
Subject: bug#39236: [musl] coreutils cp mishandles error return from lchmod
Date: Fri, 7 Feb 2020 16:37:56 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 1/22/20 2:05 PM, Rich Felker wrote:
I think we're approaching a consensus that glibc should fix this too,
so then it would just be gnulib matching the fix.

I installed the attached patch to Gnulib in preparation for the upcoming glibc fix. The patch causes fchmodat with AT_SYMLINK_NOFOLLOW to work on non-symlinks, and similarly for lchmod on non-symlinks. The idea is to avoid this sort of problem in the future, and to let Coreutils etc. work on older platforms as if glibc 2.32 (or whatever) is already in place.

Attachment: 0001-fchmodat-AT_SYMLINK_NOFOLLOW-fix-for-non-symlinks.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]