diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-31 09:59:57 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-31 09:59:57 +0000 |
commit | b907a4b07142f5040aae0e303cd57e7a0432afab (patch) | |
tree | f169419a8c4873167d301d4b5eaf48aeffb6330c /tests | |
parent | 522a91254a82d4a044a87b2a5a091402b1d22ea6 (diff) | |
download | busybox-w32-b907a4b07142f5040aae0e303cd57e7a0432afab.tar.gz busybox-w32-b907a4b07142f5040aae0e303cd57e7a0432afab.tar.bz2 busybox-w32-b907a4b07142f5040aae0e303cd57e7a0432afab.zip |
Major cleanup from Charles Steinkuehler <charles@steinkuehler.net>:
- Switched to getopt argument parsing
- Added -f option to get fully qualified domain name
- Fixed the -s (short) and -d (domain) options, which were not
doing a gethostbyname lookup to get the FQDN before trying to
separate the local and domain portions of the hostname.
- Fixed probem with 'agressive setting' of the hostname...the
previous busybox version would try to set the hostname if called
with a non-option argument, or the -F option, even if another
option (like -i or -s) was given. This behavior does not match
the net-tools hostname, which does not attempt to set anything if
given a 'display' option, regardless of the presence/absence of
the -F option or additional command line arguments.
- When using a file to set the hostname, behavior now matches
net-tools version...previous busybox version did not handle
comments, and simply grabbed the first line from the file.
git-svn-id: svn://busybox.net/trunk/busybox@3607 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions