Fix for better way to check for user on system.
authorJameson Graef Rollins <jrollins@phys.columbia.edu>
Thu, 19 Jun 2008 22:25:02 +0000 (18:25 -0400)
committerJameson Graef Rollins <jrollins@phys.columbia.edu>
Thu, 19 Jun 2008 22:25:02 +0000 (18:25 -0400)
src/monkeysphere-server

index a9a9aed5019b390b0b2309e1390e6915338dfd28..693c062d5554fd858a8671e1fb303536d86a6f4c 100755 (executable)
@@ -163,7 +163,7 @@ case $COMMAND in
            MODE="authorized_keys"
 
            # check all specified users exist
-           if ! getent passwd | cut -d: -f1 | grep -q "^${uname}$" ; then
+           if ! getent passwd "$uname" >/dev/null ; then
                error "----- unknown user '$uname' -----"
                continue
            fi