]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r339535:
authorae <ae@FreeBSD.org>
Sun, 18 Nov 2018 00:26:09 +0000 (00:26 +0000)
committerae <ae@FreeBSD.org>
Sun, 18 Nov 2018 00:26:09 +0000 (00:26 +0000)
commitaa302129ad6cdc6fdea4a895cc06c770577efab1
treebfcb56059853d5128ce5bf8edc91a71f9e262a82
parent6dc9464d89d89a37d4d114ba519d004ee25649b5
MFC r339535:
  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
  Sponsored by: Yandex LLC
  Differential Revision: https://reviews.freebsd.org/D17171

MFC r339536:
  Fix grammar.
sbin/ifconfig/ifconfig.c