dm-multipath: typo, strncat instead of strncpy
RFC PATCH 1/1 dm-multipath: typo, strncat instead of strncpy
strncat here doesn't seem right, strncpy should be correct!
Signed-off-by Malahal Naineni ([email protected])
PS: But why bother correcting an entry that is going to be deleted anyway? IMO, just deleting the strncat/strncpy line should be fine too. Any comments???
libmultipath/configure.c +1 -1
@@ -170,7 +170,7 @@ select_action (struct multipath * mpp, vif (!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 ); +strncpy (cmpp->wwid, mpp->wwid,WWID_SIZE );drop_multipath (curmp, cmpp->wwid,KEEP_PATHS ); mpp->action =ACT_CREATE ; condlog(3, "%s: set ACT_CREATE (map wwid change)",