Imported Upstream version 1.8.3p1
[debian/sudo] / plugins / sudoers / sudoers.c
index 8f3c54822c119a4e7a09aa75208a7479edcbfb35..0e25866d4d3396734a336231b845c103573b518e 100644 (file)
@@ -433,13 +433,9 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
     rebuild_env();
 
     /* Require a password if sudoers says so.  */
-    if (def_authenticate) {
-       int rc = check_user(validated, sudo_mode);
-       if (rc != TRUE) {
-           rval = rc;
-           goto done;
-       }
-    }
+    rval = check_user(validated, sudo_mode);
+    if (rval != TRUE)
+       goto done;
 
     /* If run as root with SUDO_USER set, set sudo_user.pw to that user. */
     /* XXX - causes confusion when root is not listed in sudoers */