From: Chuck Lever Date: Tue, 21 Aug 2007 16:19:13 +0000 (-0400) Subject: mount.nfs: getport() should avoid modifying passed-in arguments X-Git-Tag: nfs-utils-1-1-1~69 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=bd8cc33c7c089d5d36151732f4c00a836e7732e6;hp=bd8cc33c7c089d5d36151732f4c00a836e7732e6 mount.nfs: getport() should avoid modifying passed-in arguments Defensive coding: getport() shouldn't alter the passed-in server address, but should treat it as read only. Have it operate on a copy. Signed-off-by: Chuck Lever Signed-off-by: Neil Brown ---