summaryrefslogtreecommitdiff
path: root/src/libs6/ftrigw_clean.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 16:42:59 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 16:42:59 +0000
commit6305fe2580781df44e93c1ec8ed380896680960d (patch)
treeefb5c2c3ebe26118fed1e10d80874784060893f3 /src/libs6/ftrigw_clean.c
parent3ea0b28892de170c5de281529613531dfa15eaa8 (diff)
downloads6-6305fe2580781df44e93c1ec8ed380896680960d.tar.xz
Adapt to skalibs-2.7.0.0
Diffstat (limited to 'src/libs6/ftrigw_clean.c')
-rw-r--r--src/libs6/ftrigw_clean.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6/ftrigw_clean.c b/src/libs6/ftrigw_clean.c
index 3253f7a..3ad9e3a 100644
--- a/src/libs6/ftrigw_clean.c
+++ b/src/libs6/ftrigw_clean.c
@@ -33,7 +33,7 @@ int ftrigw_clean (char const *path)
else if ((errno == ENXIO) && (unlink(tmp) < 0)) e = errno ;
}
}
- if (errno) e = errno ;
dir_close(dir) ;
+ if (errno) e = errno ;
return e ? (errno = e, 0) : 1 ;
}