Now reading in the S_CAPS values from the vserver's /etc/vservers/<name>.conf
[util-vserver.git] / src / vsh.c
index 8290c8e..d932471 100644 (file)
--- a/src/vsh.c
+++ b/src/vsh.c
@@ -52,10 +52,7 @@ int main(int argc, char **argv)
     else
       index = 0;
 
-    if ((uid = getuid()) < 0) {
-      perror("vsh: getuid error ");
-      exit(1);
-    }
+    uid = getuid();
     if ((pwd = getpwuid(uid)) == NULL) {
       fprintf(stderr,"vsh: getpwnam error failed for %d\n",uid); 
       exit(1);