discover-image: pass the right fd to fd_getcrtime()

This commit is contained in:
Lennart Poettering
2021-08-19 09:18:45 +02:00
parent 87167331c9
commit 12a7f04a2b
+1 -1
View File
@@ -305,7 +305,7 @@ static int image_make(
}
/* Get directory creation time (not available everywhere, but that's OK */
(void) fd_getcrtime(dfd, &crtime);
(void) fd_getcrtime(fd, &crtime);
/* If the IMMUTABLE bit is set, we consider the directory read-only. Since the ioctl is not
* supported everywhere we ignore failures. */