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