From 6d39b726c0742d46bb697612c13dd77628e8362c Mon Sep 17 00:00:00 2001
From: Jameson Graef Rollins <jrollins@phys.columbia.edu>
Date: Thu, 19 Jun 2008 18:25:02 -0400
Subject: [PATCH] Fix for better way to check for user on system.

---
 src/monkeysphere-server | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/monkeysphere-server b/src/monkeysphere-server
index a9a9aed..693c062 100755
--- a/src/monkeysphere-server
+++ b/src/monkeysphere-server
@@ -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
-- 
2.25.1