FS#28782 - filesystem invokes useradd with wrong parameters

Attached to Project: Arch Linux
Opened by Carlo Bersani (carlocci) - Monday, 05 March 2012, 01:45 GMT
Last edited by Dave Reisner (falconindy) - Monday, 05 March 2012, 02:04 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In this function definition and call:

_adduser() {
if ! bin/grep -q "^$1:" etc/passwd; then
usr/sbin/useradd ${@} >/dev/null
fi
}

_adduser http -u 33 -d /srv/http -g http -s /bin/false http

the first "http" causes useradd to fail printing its usage page.

Additional info:
filesystem-2012.2-2



Steps to reproduce:
This task depends upon

Closed by  Dave Reisner (falconindy)
Monday, 05 March 2012, 02:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in SVN

Loading...