Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 26 Aug 2015 23:09:07 +0200
From: Tomasz Sterna <tomek@...oka.com>
To: musl@...ts.openwall.com
Subject: Re: lchmod on Linux

Dnia 2015-08-26, śro o godzinie 15:49 -0400, Rich Felker pisze:
> This issue (the useless lchmod) was raised once before, a long time
> ago. But there's not really anything that can be done about it since
> there are existing binaries referencing it.

One thing could be always returning 0, as this is really a no-op on
Linux.


> But conceptually, the same issue would exist if libarchive were using
> the fchmodat function rather than lchmod.

Well... fchmodat is a different function and you might expect it
failing.
But since a platform _is_ providing lchmod one should not expect it to
return not-supported when used on a symlink.
It would give me a serious WTF reading a code that uses a platform
supported function and checking for not-supported error. ;-)


> EOPNOTSUP is a documented result for fchmodat, [...]

Is it a documented result for lchmod? (Google is no help here.)
(If yes, I will die a little and just move on ;-)


-- 
 /o__ Q: Why did the astrophysicist order three hamburgers?
(_<^' A: Because he was hungry.

Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.