summaryrefslogtreecommitdiff
path: root/hostname.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-26Consistently use defined exit codes.Jiri Popelka1-2/+3
Tools have been inconsistently using exit codes when started with --help/--version. With this patch all tools use exit codes E_USAGE/E_VERSION defined in net-support.h. There's probably no rule what exit codes should programs use when started with --help/--version, but when I'm checking programs on my system most of them use 0 (SUCCESS) exit code. Therefore I redefined E_USAGE/E_VERSION to EXIT_SUCCESS (0).
2011-12-10hostname: check return value of getdomainnameMike Frysinger1-1/+4
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-04-09hostname: fix FQDN handling with AAAA recordsMike Frysinger1-8/+59
patch by pasi.valminen@hut.fi Gentoo bug 42650
2003-10-11Maik Broemme contributed gcc warning fixes (break after default: label)Bernd Eckenfels1-10/+12
2003-06-12make hostname compile warnign free with gcc 3.3 (Ec)Bernd Eckenfels1-3/+1
2001-04-08Use setlocale at program initialisation.Phil Blundell1-1/+3
Patch from Arnaldo Carvalho de Melo.
2000-02-13From Arnaldo Carvalho de Melo (acme@conectiva.com.br):Ralf Bächle1-6/+9
- Change hostname.c to make translation easier. - Update pt_BR translation. - Rebuild net-tools.pot and merge the other .po files (me).
1999-04-18Minor textual updates/correctionsPhil Blundell1-3/+3
1999-03-24Fix filename in error message.Phil Blundell1-1/+1
Patch from Meelis Roos <mroos@tartu.cyber.ee>
1999-02-27DECnet support, from Steve Whitehouse, <SteveW@ACM.org>Phil Blundell1-9/+77
1999-01-05A whole pile of fixes from Bernd, plus a fix for an arpPhil Blundell1-2/+2
problem reported by Klaus Kudielka <kudielka@ieee.org>. Also an ifconfig patch for alias deletion from Roman Sulzhyk <roman@staff.prodigy.com>. I'm not too happy with this one but I put it in anyway. Andi, see what you think (look at ifconfig.c about line 1100). Is there really no better way to delete an alias?
1998-11-15Yow. This is net-tools completely reindented.Klaas Freitag1-248/+248
Some other cleanups: - lib/net-string.c removed because it was not used and had a copyright notice that conflicted with the GPL. - Minor cleanups. - Fix an potential buffer overflow in ax25. - Switch to CVS $Id$ for versioning consistently
1998-08-10Replace outdated NLS support with GNU gettext (patch fromPhil Blundell1-76/+40
Arnaldo Carvalho de Melo <acme@conectiva.com.br>). This touches virtually every file but the changes are fairly superficial. Please check I haven't broken your favourite AF/hardware type during the conversion.
1998-06-11Fix uninitialised variable (was causing problems on SPARC apparently)Phil Blundell1-1/+1
(From Aron Griffis <agriffis@coat.com>)
1998-01-08Initial revisionPhil Blundell1-0/+360