add else failure to list_users function
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 7 Apr 2009 05:53:04 +0000 (22:53 -0700)
committerJameson Graef Rollins <jrollins@finestructure.net>
Tue, 7 Apr 2009 05:53:04 +0000 (22:53 -0700)
src/share/common

index f954bb94a071d6d78891878d526be950bbe488b1..11e7969952f2b8dfb2cca4f1f87cd4959ca38f89 100644 (file)
@@ -466,6 +466,8 @@ list_users() {
     elif type dscl &>/dev/null ; then
        # for Darwin systems
        dscl localhost -list /Search/Users
+    else
+       failure "Neither getent or dscl is in the path!  Could not determine list of users."
     fi
 }