]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Fix typo bug in previous commit (6ae1ed49c8c6)
authorTheodore Ts'o <tytso@mit.edu>
Sat, 25 Mar 2006 06:42:02 +0000 (01:42 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 25 Mar 2006 06:42:02 +0000 (01:42 -0500)
"fd" should have been "probe.fd" so blkid/probe.c can compile without
errors.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/probe.c

index 3ce1e4ca060f1b0c2e4ae7101fee9249c1d93082..dcc6a6e4f69c3960680240c6f2355e98687116e7 100644 (file)
@@ -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;
        }