summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-boot/lilo/files/lilo-22.5.9-devmapper_gentoo.patch')
-rw-r--r--sys-boot/lilo/files/lilo-22.5.9-devmapper_gentoo.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-boot/lilo/files/lilo-22.5.9-devmapper_gentoo.patch b/sys-boot/lilo/files/lilo-22.5.9-devmapper_gentoo.patch
index 077532d218fd..847f953b061e 100644
--- a/sys-boot/lilo/files/lilo-22.5.9-devmapper_gentoo.patch
+++ b/sys-boot/lilo/files/lilo-22.5.9-devmapper_gentoo.patch
@@ -221,11 +221,11 @@ diff -uNr lilo-22.5.9.orig/geometry.c lilo-22.5.9/geometry.c
+ strncpy(dmdev, dev.name, PATH_MAX);
+ dmdev[PATH_MAX] = 0;
+ do {
++ memset(buf, 0, PATH_MAX + 1);
+ if ((result = readlink(dmdev, buf, PATH_MAX)) < 0 && errno != EINVAL)
+ die("device-mapper: readlink(\"%s\") failed with: %s",buf,
+ strerror(errno));
+ if (result >= 0) {
-+ buf[PATH_MAX] = 0;
+ if (buf[0] != '/' && (slash = strrchr(dmdev, '/')) != NULL)
+ slash++;
+ else