aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds.c b/src/mds.c
index 23c6bac..1c0f002 100644
--- a/src/mds.c
+++ b/src/mds.c
@@ -517,11 +517,11 @@ int unlink_recursive(const char* pathname)
/* Check that we could examine the directory. */
if (dir == NULL)
{
- int errno_ = errno;
+ int saved_errno = errno;
struct stat _attr;
if (stat(pathname, &_attr) < 0)
return 0; /* Directory does not exist. */
- errno = errno_;
+ errno = saved_errno;
fail_if (1);
}