From: Karel Zak Date: Fri, 18 Sep 2009 08:48:32 +0000 (+0200) Subject: libblkid: fix blkid_devno_to_wholedisk() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cd0823c6b0fce8bfd4236eb59426dc791de84ac;p=util-linux libblkid: fix blkid_devno_to_wholedisk() Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/src/devno.c b/shlibs/blkid/src/devno.c index c84f01ec..c976228a 100644 --- a/shlibs/blkid/src/devno.c +++ b/shlibs/blkid/src/devno.c @@ -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;