]> granicus.if.org Git - sudo/commitdiff
added support for "runas" from garp@opustel.com
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 28 Apr 1996 01:03:06 +0000 (01:03 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 28 Apr 1996 01:03:06 +0000 (01:03 +0000)
testsudoers.c

index 54f6730e9c21888bd74db6757eb4c3eba96f1e49..0314250ac962407954bf776f7bab0ec80d1f2cd9 100644 (file)
@@ -58,6 +58,7 @@ static char rcsid[] = "$Id$";
 /*
  * Globals
  */
+char *runas_user = "oracle";
 int parse_error = FALSE;
 extern int clearaliases;
 extern struct interface *interfaces;
@@ -265,9 +266,12 @@ main(argc, argv)
            (void) printf("User %s not found\n", pw_ent.pw_name);
        else while (top) {
            (void) printf("[%d]\n", top-1);
-           (void) printf("user_match: %d\n", user_matches);
-           (void) printf("host_match: %d\n", host_matches);
-           (void) printf("cmnd_match: %d\n", cmnd_matches);
+           (void) printf("user_match : %d\n", user_matches);
+           (void) printf("host_match : %d\n", host_matches);
+           (void) printf("cmnd_match : %d\n", cmnd_matches);
+           (void) printf("no_passwd  : %d\n", no_passwd);
+           (void) printf("runas_match: %d\n", runas_matches);
+           (void) printf("runas      : %s\n", runas_user);
            top--;
        }
     }