summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2021-06-01 18:38:41 -0700
committerSasha Levin <sashal@kernel.org>2021-06-30 08:49:31 -0400
commit61ec5a0e7a1809c128d268971ef0151b7168793c (patch)
treec5645aef9f2657e86bb42fd526e6b87eb1300030 /net/unix/af_unix.c
parentb341e124071cb5478c00fabb77bfbca87c2510cf (diff)
net: ipconfig: Don't override command-line hostnames or domains
[ Upstream commit b508d5fb69c2211a1b860fc058aafbefc3b3c3cd ] If the user specifies a hostname or domain name as part of the ip= command-line option, preserve it and don't overwrite it with one supplied by DHCP/BOOTP. For instance, ip=::::myhostname::dhcp will use "myhostname" rather than ignoring and overwriting it. Fix the comment on ic_bootp_string that suggests it only copies a string "if not already set"; it doesn't have any such logic. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions