about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-04-04 02:08:37 -0700
committerUlrich Drepper <drepper@redhat.com>2010-04-04 02:08:37 -0700
commitcb652f30b0aa17e65803962305e052e509a5316d (patch)
treec5c4f6be9a4d948ee7fb3d1c83f02c414eb0ca35 /sysdeps/unix
parent952df0afdca2333e9fae7d62a36077c348d2df93 (diff)
downloadglibc-cb652f30b0aa17e65803962305e052e509a5316d.tar.gz
glibc-cb652f30b0aa17e65803962305e052e509a5316d.tar.xz
glibc-cb652f30b0aa17e65803962305e052e509a5316d.zip
Handle POSIX-compliant errno value of unlink in remove.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/remove.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/remove.c b/sysdeps/unix/sysv/linux/remove.c
new file mode 100644
index 0000000000..4abf34a73d
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/remove.c
@@ -0,0 +1,2 @@
+#define IS_NO_DIRECTORY_ERROR errno != EISDIR
+#include <sysdeps/posix/remove.c>