"hostname --help" prints wrong help message

Dirk Clemens develop at cle-mens.de
Mon Mar 12 18:20:53 UTC 2007


Denis Vlasenko wrote:
> 
> Please send your .config. And also check whether in your tree
> in applets.h alphabetical order is not botched. Should be:
> 

.config -> see attachment

applets.h looks good:
...
USE_GZIP(APPLET(gzip, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_HALT(APPLET(halt, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_HDPARM(APPLET(hdparm, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_HEAD(APPLET(head, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_HEXDUMP(APPLET(hexdump, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_HOSTID(APPLET(hostid, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_HOSTNAME(APPLET(hostname, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_HTTPD(APPLET(httpd, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
USE_HUSH(APPLET_NOUSAGE(hush, hush, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_HWCLOCK(APPLET(hwclock, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_ID(APPLET(id, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_IFCONFIG(APPLET(ifconfig, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_IFUPDOWN(APPLET_ODDNAME(ifdown, ifupdown, _BB_DIR_SBIN,
_BB_SUID_NEVER, ifdown))
USE_IFUPDOWN(APPLET_ODDNAME(ifup, ifupdown, _BB_DIR_SBIN,
_BB_SUID_NEVER, ifup))
USE_INETD(APPLET(inetd, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
USE_INIT(APPLET(init, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_INSMOD(APPLET(insmod, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_INSTALL(APPLET(install, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_IP(APPLET(ip, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_IPADDR(APPLET(ipaddr, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_IPCALC(APPLET(ipcalc, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_IPCRM(APPLET(ipcrm, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS))
USE_IPCS(APPLET(ipcs, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS))
USE_IPLINK(APPLET(iplink, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_IPROUTE(APPLET(iproute, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_IPRULE(APPLET(iprule, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_IPTUNNEL(APPLET(iptunnel, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_KILL(APPLET(kill, _BB_DIR_BIN, _BB_SUID_NEVER))
...

all help messages from HOSTNAME to INSMOD show the help message
of the next applet. KILL is the first correct one.


Currently defined functions:
        [, [[, addgroup, adduser, arping, awk, basename,
        bunzip2, bzcat, cat, catv, chattr, chgrp, chmod,
        chown, chroot, cksum, clear, cmp, comm, cp, crond,
        crontab, cut, date, dd, delgroup, deluser, df, diff,
        dirname, dmesg, dos2unix, du, echo, egrep, env,
        ether-wake, expr, false, fdisk, fgrep, find, fold,
        free, freeramdisk, fsck, getopt, getty, grep, gunzip,
        gzip, halt, head, hexdump, hostname, httpd, ifconfig,
        inetd, init, insmod, kill, killall, killall5, klogd,
        less, ln, logger, login, logname, logread, losetup,
        ls, lsattr, lsmod, md5sum, mkdir, mkfifo, mknod,
        mkswap, mktemp, more, mountpoint, mv, nameif, netstat,
        nice, nohup, od, passwd, pidof, ping, pivot_root,
        poweroff, printenv, printf, ps, pwd, rdate, readlink,
        realpath, reboot, renice, reset, rm, rmdir, rmmod,
        route, sed, seq, setconsole, setlogcons, sleep,
        sort, stat, strings, stty, swapoff, swapon, sync,
        syslogd, tail, tar, tee, telnet, telnetd, test,
        time, top, touch, tr, traceroute, true, tty, udhcpc,
        umount, uname, uniq, unix2dos, unzip, uptime, usleep,
        uudecode, uuencode, vi, watch, wc, wget, which,
        who, whoami, xargs, yes, zcat



Dirk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/xml
Size: 16965 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070312/eb67a135/attachment-0002.xml 


More information about the busybox mailing list