]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - docs/BLOCK_DEVICE_LOCKING.md
Merge pull request #33192 from DaanDeMeyer/packaging
[thirdparty/systemd.git] / docs / BLOCK_DEVICE_LOCKING.md
index 862d6f0369d81fccc8808179a0271392c9912d9b..a6e3374bc7932dcfea6de6b761dbcfcb45e282c7 100644 (file)
@@ -213,7 +213,7 @@ int lock_whole_disk_from_devname(const char *devname, int open_flags, int flock_
 
     // take the fd to avoid automatic cleanup
     int ret_fd = fd;
-    fd = -1;
+    fd = -EBADF;
     return ret_fd;
 }