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: v248.10~142 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=765769a6cd6e8e83103f124fbc6327d88d1220f5;p=systemd%2F.git discover-image: pass the right fd to fd_getcrtime() (cherry picked from commit 12a7f04a2b9135a4751dba71e2f688525d7c93e7) (cherry picked from commit 64b025686f36ae4385811be6f81d5f7d94da3437) --- diff --git a/src/shared/discover-image.c b/src/shared/discover-image.c index 79c4c70a41..6ca403b9a6 100644 --- a/src/shared/discover-image.c +++ b/src/shared/discover-image.c @@ -303,7 +303,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. */