Date: Mon, 18 Apr 2005 10:30:37 GMT From: Hans Meyer <ss@matik.com.br> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/80058: adduser -f exits silently if file has empty line or line starting with # Message-ID: <200504181030.j3IAUbYF093625@www.freebsd.org> Resent-Message-ID: <200504181040.j3IAeGsw091487@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 80058
>Category: misc
>Synopsis: adduser -f exits silently if file has empty line or line starting with #
>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 Apr 18 10:40:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Hans Meyer
>Release: 5.3-R
>Organization:
Infomatik
>Environment:
FreeBSD msrv.matik.com.br 5.3-RELEASE FreeBSD 5.3-RELEASE #2: Sun Feb 13 01:35:32 BRST 2005 hmm@msrw.matik.com.br:/usr/src/sys/i386/compile/msrv i386
>Description:
adduser -f file exits without any advice or error when the named file has an empty line or a line starting with # without adding any user
manpage tells in the FORMAT section:
All empty lines or lines beginning with a `#' will be ignored.
file example
_emptyline_
usr1::nobody:::::::password1
usr2::nobody:::::::password2
EOF
adduser.conf
defaultLgroup=nobody
defaultclass=
defaultgroups=
passwdtype=yes
homeprefix=/home
defaultshell=/bin/sh
udotdir=/usr/share/skel
msgfile=/etc/mail/bemvindo_novusr
disableflag=
>How-To-Repeat:
executing adduser -f file
>Fix:
eliminating empty lines
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504181030.j3IAUbYF093625>
