The init script of sshd has a incomplete variable opts resulting in incomplete usage information. Changing line opts="reload" to opts="${opts} reload" corrects this. Reproducible: Always Steps to Reproduce: 1. /etc/init.d/sshd asdf Actual Results: * ERROR: wrong args ( asdf ) * Usage: sshd { reload } * sshd without arguments for full help Expected Results: * ERROR: wrong args ( asdf ) * Usage: sshd { start|stop|restart|reload } * sshd without arguments for full help
please post `emerge --info` like the bug reporting page says to
Happens on amd64 and x86, hardened and non-hardened. # LC_ALL=C emerge --info Portage 2.1.6.7 (selinux/2007.0/amd64/hardened, gcc-3.4.6, glibc-2.8_p20080602-r1, 2.6.28-hardened-r7 x86_64) ================================================================= System uname: Linux-2.6.28-hardened-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7200_@_2.53GHz-with-glibc2.3.2 Timestamp of tree: Fri, 10 Apr 2009 01:00:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.2-r7 dev-python/pycrypto: 2.0.1-r8 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages loadpolicy parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/" LANG="de_DE.UTF-8" LC_ALL="C" LDFLAGS="" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/ovh-overlay /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/scharesoft-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl acpi amd64 apache2 audit bash-completion berkdb bzip2 caps cgi clamav cli cracklib crypt curl curlwrappers dbus device-mapper emacs exif fam fastcgi fortran ftp gdbm geoip gmp gnutls hal hardened hddtemp iconv imagemagick imap innodb ipv6 latex lm_sensors logrotate loop-aes mailwrapper mmap mmx mudflap mysql mysqli ncurses nls nptl nptlonly nptlreadline openmp pam pcre perl php pic python readline reflection sasl selinux session spell spl sse sse2 ssl subversion suhosin syslog sysvipc tcpd tetex threads unicode urandom usb vhosts xattr zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 intel mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # eix openssh [I] net-misc/openssh Available versions: ~4.6_p1-r4 4.7_p1-r6 ~4.7_p1-r20 ~5.0_p1-r1 ~5.0_p1-r2 5.1_p1-r2 ~5.1_p1-r3 5.2_p1-r1 [M]~5.2_p1-r2 {X X509 chroot hpn kerberos ldap libedit pam pkcs11 selinux skey smartcard static tcpd} Installed versions: 5.2_p1-r1(19:08:54 08.04.2009)(pam selinux tcpd -X -X509 -hpn -kerberos -ldap -libedit -pkcs11 -skey -smartcard -static) Homepage: http://www.openssh.org/ Description: Port of OpenBSD's free SSH release # LC_ALL=C emerge --info Portage 2.1.6.7 (selinux/2007.0/x86/hardened, gcc-3.4.6, glibc-2.8_p20080602-r1, 2.6.25-hardened-r8 i686) ================================================================= System uname: Linux-2.6.25-hardened-r8-i686-Intel-R-_Celeron-R-_CPU_220_@_1.20GHz-with-glibc2.3.2 Timestamp of tree: Thu, 09 Apr 2009 23:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.7.9-r1, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages loadpolicy parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/" LANG="de_DE.UTF-8" LC_ALL="C" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/ovh-overlay /usr/portage/local/scharesoft" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl acpi apache2 audit bash-completion berkdb bzip2 caps cgi clamav cli cracklib crypt curl curlwrappers dbus emacs exif fastcgi fortran ftp gdbm geoip gmp gnutls hal hardened hddtemp iconv imagemagick imap innodb ipv6 latex lm_sensors loop-aes mailwrapper mmap mmx mudflap mysql mysqli ncurses nls nptl nptlonly nptlreadline openmp pam pcre perl php pic python readline reflection sasl selinux session spl sse sse2 ssl subversion syslog sysvipc tcpd tetex unicode urandom usb vhosts x86 xattr zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # eix openssh [I] net-misc/openssh Available versions: ~4.6_p1-r4 4.7_p1-r6 ~4.7_p1-r20 ~5.0_p1-r1 ~5.0_p1-r2 5.1_p1-r2 ~5.1_p1-r3 5.2_p1-r1 [M]~5.2_p1-r2 {X X509 chroot hpn kerberos ldap libedit pam pkcs11 selinux skey smartcard static tcpd} Installed versions: 5.2_p1-r1(19:27:16 08.04.2009)(pam selinux tcpd -X -X509 -hpn -kerberos -ldap -libedit -pkcs11 -skey -smartcard -static) Homepage: http://www.openssh.org/ Description: Port of OpenBSD's free SSH release # LC_ALL=C emerge --info Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.25-gentoo-r7 i686) ================================================================= System uname: Linux-2.6.25-gentoo-r7-i686-AMD_Duron-tm-_Processor-with-glibc2.0 Timestamp of tree: Wed, 08 Apr 2009 15:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-tbird -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon-tbird -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.gentoo.mesh-solutions.com/gentoo/ " LANG="de_DE.UTF-8" LC_ALL="C" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow acl acpi apache2 bash-completion berkdb bzip2 caps cgi clamav cli cracklib crypt cups dbus emacs fastcgi foomaticdb fortran gdbm geoip gnutls hal iconv ipv6 isdnlog latex midi mmap mmx mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection samba session spl ssl subversion sysfs syslog tcpd tetex unicode urandom usb vhosts wifi x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY # eix openssh [I] net-misc/openssh Available versions: ~4.6_p1-r4 4.7_p1-r6 ~4.7_p1-r20 ~5.0_p1-r1 ~5.0_p1-r2 5.1_p1-r2 ~5.1_p1-r3 5.2_p1-r1 [M]~5.2_p1-r2 {X X509 chroot hpn kerberos ldap libedit pam pkcs11 selinux skey smartcard static tcpd} Installed versions: 5.2_p1-r1(22:46:44 08.04.2009)(pam tcpd -X -X509 -hpn -kerberos -ldap -libedit -pkcs11 -selinux -skey -smartcard -static) Homepage: http://www.openssh.org/ Description: Port of OpenBSD's free SSH release These are three completly different systems serving different purposes (though all as servers/firewall). I'm sure it is not related to system configuration, thus I ommitted emerge --info first. "Problem" exists on all of them.
it happens with baselayout-1, not openrc
Fixed in CVS.