summaryrefslogtreecommitdiffstats
path: root/lib/loopdev.c
diff options
context:
space:
mode:
authorKarel Zak2014-05-13 15:07:08 +0200
committerKarel Zak2014-05-13 15:23:42 +0200
commit0f283438bfdf7b6e6e916b63a2c317d938b1463a (patch)
tree13b2371c39f5d962d71a045d343cd0263640fb91 /lib/loopdev.c
parentlib/colors: add to the man page hint about $HOME stuff (diff)
downloadkernel-qcow2-util-linux-0f283438bfdf7b6e6e916b63a2c317d938b1463a.tar.gz
kernel-qcow2-util-linux-0f283438bfdf7b6e6e916b63a2c317d938b1463a.tar.xz
kernel-qcow2-util-linux-0f283438bfdf7b6e6e916b63a2c317d938b1463a.zip
agetty: use the "best" interface for \4 and \6
The issue file escape sequences \4 and \6 prints the host IP when no interface is specified. That's useless on some virtual machines where gethostname()+getaddrinfo() returns 127.0.0.1. The seems better to print IP of the "best" interface (UP, RUNNING, non-LOOPBACK) and use gethostname() as painful fallback only. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1090935 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/loopdev.c')
0 files changed, 0 insertions, 0 deletions