From 5cd0823c6b0fce8bfd4236eb59426dc791de84ac Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 18 Sep 2009 10:48:32 +0200 Subject: [PATCH] libblkid: fix blkid_devno_to_wholedisk() Signed-off-by: Karel Zak --- shlibs/blkid/src/devno.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5