]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Under some circumstances, rm would fail due to a lack of
authorJim Meyering <jim@meyering.net>
Sun, 14 Jul 2002 11:46:41 +0000 (11:46 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 14 Jul 2002 11:46:41 +0000 (11:46 +0000)
commitab4c1d5532c685a1add2fd8fb8ac1f67c7f59b43
treefb7faef0aaa7eb2bc2a26b7248d1dd6dec407902
parent7678915a9e643147792b10cb68b2711ab2c052de
Under some circumstances, rm would fail due to a lack of
permissions, but give a misleading diagnostic like this:
rm: cannot chdir from `.' to `foo': Not a directory

(remove_dir): Detect the case in which unlinking a
non-directory fails with EPERM, and give an appropriate diagnostic.
src/remove.c