Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 10:01:19 GMT
From:      Carl <k0802647@telus.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/159178: rmusers: cannot work from stdin and generates wrong error message
Message-ID:  <201107251001.p6PA1JPx001986@red.freebsd.org>
Resent-Message-ID: <201107251010.p6PAA7KM088106@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107251001.p6PA1JPx001986>