1
0
multipath-tools/fixbuffers.diff
Cristian Rodríguez 449c2973e4 Accepting request 42351 from home:jengelh:sparc
Copy from home:jengelh:sparc/multipath-tools via accept of submit request 42351 revision 2.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/42351
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=14
2010-07-01 20:50:26 +00:00

14 lines
738 B
Diff

Index: multipath-tools-0.4.8/libmultipath/configure.c
===================================================================
--- multipath-tools-0.4.8.orig/libmultipath/configure.c 2010-02-26 13:34:41.000000000 +0100
+++ multipath-tools-0.4.8/libmultipath/configure.c 2010-02-26 13:35:31.000000000 +0100
@@ -167,7 +167,7 @@ select_action (struct multipath * mpp, v
if (!find_mp_by_wwid(curmp, mpp->wwid)) {
condlog(2, "%s: remove (wwid changed)", cmpp->alias);
dm_flush_map(mpp->alias);
- strncat(cmpp->wwid, mpp->wwid, WWID_SIZE);
+ strncat(cmpp->wwid, mpp->wwid, WWID_SIZE-strlen(cmpp->wwid)-1);
drop_multipath(curmp, cmpp->wwid, KEEP_PATHS);
mpp->action = ACT_CREATE;
condlog(3, "%s: set ACT_CREATE (map wwid change)",