bug-coreutils
[Top][All Lists]
Advanced

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

bug#79072: install -d onto readonly fs prints the wrong error


From: Lauri Tirkkonen
Subject: bug#79072: install -d onto readonly fs prints the wrong error
Date: Tue, 22 Jul 2025 13:17:30 +0900

Hi,

saw this on coreutils 9.7 on Alpine Linux, but it also reproduces on
commit 027855dcad52d718927c3405bc7d605143e2a625.

        # mount -t tmpfs -o ro none /mnt
        # ./src/ginstall -d /mnt/foo
        ginstall: cannot change permissions of ‘/mnt/foo’: No such file or 
directory

I would expect the error to be EROFS for creating the directory, not
changing permissions of the directory that was not able to be created.
strace confirms mkdir() returns EROFS, but install tries to open() and
stat() the not-created directory afterward.

-- 
Lauri Tirkkonen | lotheac @ IRCnet





reply via email to

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