]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
discover-image: pass the right fd to fd_getcrtime()
authorLennart Poettering <lennart@poettering.net>
Wed, 18 Aug 2021 20:41:08 +0000 (22:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Aug 2021 07:18:45 +0000 (09:18 +0200)
src/shared/discover-image.c

index 521264ec29b3b194a8f636fe76157004746b6c5e..5f8bf4377640dfd4af396347bb9265bbba132159 100644 (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. */