]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/selinux-util.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / shared / selinux-util.c
index e240cdc2c32702a616189fc58b8a18eb81ef7959..a74883ab81ef4c5b2eacfedcfae126ef8cce0444 100644 (file)
@@ -297,7 +297,7 @@ int mac_selinux_fix_full(
         assert(atfd >= 0 || inode_path);
 
 #if HAVE_SELINUX
-        _cleanup_close_ int opened_fd = -1;
+        _cleanup_close_ int opened_fd = -EBADF;
         _cleanup_free_ char *p = NULL;
         int inode_fd, r;