Andrey V. Elsukov 5c88595e07 Do not allow use create keyword as hostname when ifconfig(8) is invoked
for already existing interface.

It appeared, that ifconfig(8) assumes `create` keyword as hostname and
tries to resolve it, when `ifconfig ifname create` invoked for already
existing interface. This can produce some unexpected results, when hostname
resolving has successfully happened. This patch adds check for such case.
When an interface is already exists, and create is only one argument,
return error message. But when there are some other arguments, just remove
create keyword from the arguments list.

Obtained from:	Yandex LLC
MFC after:	3 weeks
Sponsored by:	Yandex LLC
Differential Revision:	https://reviews.freebsd.org/D17171
2018-10-21 14:40:45 +00:00
..
2018-09-18 20:52:24 +00:00
2018-08-25 15:47:52 +00:00
2018-07-26 16:45:25 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-06-24 05:40:42 +00:00
2018-10-20 21:13:57 +00:00
2018-06-16 23:47:59 +00:00
2018-03-31 15:06:14 +00:00
2017-10-31 00:07:04 +00:00