]> git.ipfire.org Git - thirdparty/coreutils.git/commit
rm: be more careful when using a replacement errno value
authorJim Meyering <meyering@redhat.com>
Wed, 5 Sep 2012 14:48:50 +0000 (16:48 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 5 Sep 2012 15:31:00 +0000 (17:31 +0200)
commitccbd3f3b290cb1bbed6a91361389bb936446621c
tree5134796e2f99d1ecf5807a52d4d0673ad20853a6
parent57dd06703cb89ba53d05af95c11e89a2ca51af5c
rm: be more careful when using a replacement errno value

* src/remove.c (excise): Tighten the test for when we defer to an
old errno value: instead of relying solely on an FTS_DNR (unreadable
directory) failure, also test current and replacement errno values.
This change would also have solved the problem addressed by commit
v8.19-106-g57dd067.  For more info, see http://bugs.gnu.org/12339#113
src/remove.c