From 292811f2aaa39c3f1ee2cbb56fe2b586f8337946 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 25 Mar 2006 01:42:02 -0500 Subject: [PATCH] Fix typo bug in previous commit (6ae1ed49c8c6) "fd" should have been "probe.fd" so blkid/probe.c can compile without errors. Signed-off-by: "Theodore Ts'o" --- lib/blkid/probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index 3ce1e4c..dcc6a6e 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -770,7 +770,7 @@ blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev) if (((probe.fd = open(dev->bid_name, O_RDONLY)) < 0) || (fstat(probe.fd, &st) < 0)) { - if (probe.fd >= 0) close(fd); + if (probe.fd >= 0) close(probe.fd); if (errno == ENXIO || errno == ENODEV || errno == ENOENT) { blkid_free_dev(dev); return NULL; @@ -838,7 +838,7 @@ try_again: } if (!dev->bid_type) { - if (probe.fd >= 0) close(fd); + if (probe.fd >= 0) close(probe.fd); blkid_free_dev(dev); return NULL; } -- 1.8.3.1