]> err.no Git - util-linux/commitdiff
libblkid: fix blkid_devno_to_wholedisk()
authorKarel Zak <kzak@redhat.com>
Fri, 18 Sep 2009 08:48:32 +0000 (10:48 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 18 Sep 2009 08:48:32 +0000 (10:48 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/devno.c

index c84f01ec8e6bfe405566c829368a5b35dd91af31..c976228af39bd3829e3bde6fd6fdffc898975886 100644 (file)
@@ -301,7 +301,7 @@ int blkid_devno_to_wholedisk(dev_t dev, char *diskname,
                FILE *f;
 
                /* read wholedisk devno */
-               rc = snprintf(path, sizeof(path), "/sys/dev/block/%s/dev", name);
+               rc = snprintf(path, sizeof(path), "/sys/block/%s/dev", name);
                if (rc < 0 || rc + 1 > sizeof(path))
                        goto err;