diff options
| author | Mike Snitzer <msnitzer@fedoraproject.org> | 2009-05-06 20:01:01 +0000 |
|---|---|---|
| committer | Mike Snitzer <msnitzer@fedoraproject.org> | 2009-05-06 20:01:01 +0000 |
| commit | cbdffc7ea04d181060f56ca3ebf122552b26b51f (patch) | |
| tree | ace6b69d19d52e33207f5e569d4f55415e920d08 /fix_devt.patch | |
| parent | b3b10f9bcf3c4766676a5a35da7e8fb767130a62 (diff) | |
Updated to latest upstream 0.4.9 code: multipath-tools-090429.tgz (gitdevice-mapper-multipath-0_4_9-1_fc12
commit id: 7395bcda3a218df2eab1617df54628af0dc3456e)
Diffstat (limited to 'fix_devt.patch')
| -rw-r--r-- | fix_devt.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/fix_devt.patch b/fix_devt.patch deleted file mode 100644 index 26239a2..0000000 --- a/fix_devt.patch +++ /dev/null @@ -1,25 +0,0 @@ -Index: multipath-tools/libmultipath/discovery.c -=================================================================== ---- multipath-tools.orig/libmultipath/discovery.c -+++ multipath-tools/libmultipath/discovery.c -@@ -252,7 +252,11 @@ devt2devname (char *devname, char *devt) - continue; - - if ((major == tmpmaj) && (minor == tmpmin)) { -- sprintf(block_path, "/sys/block/%s", dev); -+ if (snprintf(block_path, FILE_NAME_SIZE, "/sys/block/%s", dev) >= FILE_NAME_SIZE) { -+ condlog(0, "device name %s is too long\n", dev); -+ fclose(fd); -+ return 1; -+ } - break; - } - } -@@ -270,6 +274,7 @@ devt2devname (char *devname, char *devt) - condlog(0, "sysfs entry %s is not a directory\n", block_path); - return 1; - } -+ basename(block_path, devname); - return 0; - } - |
