coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] chown, chgrp: don't print uninitialized ownership info on da


From: Pádraig Brady
Subject: Re: [PATCH] chown, chgrp: don't print uninitialized ownership info on dangling links
Date: Sun, 25 Oct 2026 10:52:48 +0000
User-agent: Mozilla Thunderbird Beta

On 25/10/2026 05:26, Collin Funk wrote:
I don't have access to a machine with coreutils-5.3.0, but it appears
this was introduced in commit e4ccef8ddc672f9e5ee4963db550f97c1ae2edc8
[1]. That commit changed an early return, before the FILE_STATS was
used, into an error flag.

[1] 
https://github.com/coreutils/coreutils/commit/e4ccef8ddc672f9e5ee4963db550f97c1ae2edc8
-- 8< --

* src/chown-core.c (change_file_owner): Set the pointer to NULL if
fstatat fails.
* tests/chgrp/verbose-dangling-symlink.sh: New file.
* tests/chown/verbose-dangling-symlink.sh: New file.
* tests/local.mk (all_tests): Add the new tests.
* NEWS: Mention the bug fix.

Discovered by Anthropic's OSS Scanner, as bug ANT-2026-YYGC42VE.
Thanks for tracking down when it was introduced.

LGTM

cheers,
Padraig



reply via email to

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