From: Lennart Poettering Date: Wed, 18 Aug 2021 20:41:08 +0000 (+0200) Subject: discover-image: pass the right fd to fd_getcrtime() X-Git-Tag: v250-rc1~805^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12a7f04a2b9135a4751dba71e2f688525d7c93e7;p=thirdparty%2Fsystemd.git discover-image: pass the right fd to fd_getcrtime() --- diff --git a/src/shared/discover-image.c b/src/shared/discover-image.c index 521264ec29b..5f8bf437764 100644 --- a/src/shared/discover-image.c +++ b/src/shared/discover-image.c @@ -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. */