diff options
Diffstat (limited to 'src/basic/xattr-util.c')
-rw-r--r-- | src/basic/xattr-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/xattr-util.c b/src/basic/xattr-util.c index 0b661d9325..5b6131b56a 100644 --- a/src/basic/xattr-util.c +++ b/src/basic/xattr-util.c @@ -26,7 +26,7 @@ int getxattr_at_malloc( int flags, char **ret) { - _cleanup_close_ int opened_fd = -1; + _cleanup_close_ int opened_fd = -EBADF; unsigned n_attempts = 7; bool by_procfs = false; size_t l = 100; @@ -212,7 +212,7 @@ int listxattr_at_malloc( int flags, char **ret) { - _cleanup_close_ int opened_fd = -1; + _cleanup_close_ int opened_fd = -EBADF; bool by_procfs = false; unsigned n_attempts = 7; size_t l = 100; |