9
0
Fork 0

unlink_recursive: return negative error value

In case of an error unlink_recursive returns errno which is positive.
Return -errno instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2014-04-08 17:17:46 +02:00
parent 7b8779541f
commit 00e4664675
1 changed files with 1 additions and 1 deletions

View File

@ -53,5 +53,5 @@ int unlink_recursive(const char *path, char **failedpath)
if (!ret && failedpath)
*failedpath = unlink_recursive_failedpath;
return ret ? 0 : errno;
return ret ? 0 : -errno;
}