On 1/19/17 22:36, Conrad Meyer wrote:
> On Thu, Jan 19, 2017 at 10:29 PM, Antoine Brodin <anto...@freebsd.org> wrote:
>> On Thu, Jan 19, 2017 at 9:01 AM, Xin LI <delp...@freebsd.org> wrote:
>>> Author: delphij
>>> Date: Thu Jan 19 08:01:35 2017
>>> New Revision: 312404
>>> URL: https://svnweb.freebsd.org/changeset/base/312404
>>>
>>> Log:
>>>   Use S_ISREG instead of manual & (also it's better to compare the
>>>   result from & and the pattern instead of just assuming it's one bit
>>>   value).
>>>
>>>   Pointed out by Tianjie Mao <tjmao tjmao com>.
>>>
>>>   MFC after:    2 weeks
>>>   Differential Revision:        https://reviews.freebsd.org/D4827
>>
>> Hi,
>>
>> sed -i no longer works on symlinks which breaks lots of ports.
>> Please revert and request an exp-run.
> 
> That is clearly the intent of the code in question.  It was a bug that
> it worked before — S_IFLNK and S_IFSOCK just happen to have the
> S_IFREG bit set.  It seems like either such ports should be fixed to
> dereference the link manually, or the check should be removed
> entirely.

There are other issues with previous behavior, for instance, the file
would inherit permissions from the symlink itself, while a more sensible
behavior would be to use the permissions on the symlink target.

But I think it's reasonable to revert for now and do a exp-run so we
know what would be broken.  Personally I have been running with this for
a year and that made me thought it's safe :)

Cheers,

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to