]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/import/import-fs.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / import / import-fs.c
index ca5d33c00821b0669f41a027fac52404fb207682..d81dd13ffde4df06b37097c735e842d16b349bb9 100644 (file)
@@ -100,7 +100,7 @@ static int import_fs(int argc, char *argv[], void *userdata) {
         _cleanup_(progress_info_free) ProgressInfo progress = {};
         _cleanup_free_ char *l = NULL, *final_path = NULL;
         const char *path = NULL, *local = NULL, *dest = NULL;
-        _cleanup_close_ int open_fd = -1;
+        _cleanup_close_ int open_fd = -EBADF;
         int r, fd;
 
         if (argc >= 2)