mount.nfs: getport() should avoid modifying passed-in arguments
authorChuck Lever <chuck.lever@oracle.com>
Tue, 21 Aug 2007 16:19:13 +0000 (12:19 -0400)
committerNeil Brown <neilb@suse.de>
Fri, 24 Aug 2007 03:15:02 +0000 (13:15 +1000)
commitbd8cc33c7c089d5d36151732f4c00a836e7732e6
tree333d5f32a0f1c8e9ceda8bceadec2eb42cc6b592
parent29637ac0140db80744b24b0c5d655d435b69ba35
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 <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
utils/mount/network.c