bin/159178: rmusers: cannot work from stdin and generates wrong error message

Carl k0802647 at telus.net
Mon Jul 25 10:10:07 UTC 2011


>Number:         159178
>Category:       bin
>Synopsis:       rmusers: cannot work from stdin and generates wrong error message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 25 10:10:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Carl
>Release:        8.2-RELEASE
>Organization:
>Environment:
FreeBSD XXXXXXXX 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #0: Tue Jul 12 02:19:22 PDT 2011     YYYYYYYY  i386
>Description:
The 'adduser' utility can accept its input from stdin using the "-f -" syntax. The 'rmuser' utility does not claim to support this in its man page and produces a bizarre error message if tried:

  # echo useless | rmuser -yv -f -
  usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
         find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
  rmuser: (-) does not exist or does not contain any user names.

IMHO, symmetry demands that 'rmuser' accept "-f -" for stdin input, just like 'adduser'. In the absence of that very desirable feature, it should at least not be spitting out syntax help for the 'find' utility and it should not be confusing the argument for the -f option with a user name.
>How-To-Repeat:
Do this:

  # echo useless | rmuser -yv -f -

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list