aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/remove.c')
-rw-r--r--sysdeps/posix/remove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/remove.c b/sysdeps/posix/remove.c
index 66414c9..9999021 100644
--- a/sysdeps/posix/remove.c
+++ b/sysdeps/posix/remove.c
@@ -1,5 +1,5 @@
/* ANSI C `remove' function to delete a file or directory. POSIX.1 version.
-Copyright (C) 1995 Free Software Foundation, Inc.
+Copyright (C) 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -32,7 +32,7 @@ remove (file)
return 0;
else if (errno == ENOTDIR && __unlink (file) == 0)
{
- errno = save;
+ __set_errno (save);
return 0;
}