From nobody@FreeBSD.org  Mon Jul 25 10:01:20 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5E1C21065675
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jul 2011 10:01:20 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 4E80A8FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jul 2011 10:01:20 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p6PA1Jbv001987
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jul 2011 10:01:19 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p6PA1JPx001986;
	Mon, 25 Jul 2011 10:01:19 GMT
	(envelope-from nobody)
Message-Id: <201107251001.p6PA1JPx001986@red.freebsd.org>
Date: Mon, 25 Jul 2011 10:01:19 GMT
From: Carl <k0802647@telus.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rmusers: cannot work from stdin and generates wrong error message
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159178
>Category:       bin
>Synopsis:       rmuser(8): 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:  Mon Jul 25 16:59:20 UTC 2011
>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:
