]> granicus.if.org Git - sudo/commitdiff
Kill GLOBAL_NO_SPW_ENT (not used) and crank GLOBAL_PROBLEM
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 6 Apr 1999 05:38:59 +0000 (05:38 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 6 Apr 1999 05:38:59 +0000 (05:38 +0000)
logging.c
sudo.h

index 7c569aa68ac4d10c14c884acbd8f9db53362ab37..45f9250e39f457044f69286144dcd0e5820651a6 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -605,11 +605,6 @@ void inform_user(code)
                "Intruder Alert!  You don't exist in the passwd file\n\n");
            break;
 
-       case GLOBAL_NO_SPW_ENT:
-           (void) fprintf(stderr,
-               "Intruder Alert!  You don't exist in the shadow passwd file\n\n");
-           break;
-
        case GLOBAL_NO_HOSTNAME:
            (void) fprintf(stderr,
                "This machine does not have a hostname\n\n");
diff --git a/sudo.h b/sudo.h
index c786a17ec73befadca861e681c1e8b50f541d757..be4bfeda3dc7f9e5898d2f2953db6f78c71d40d9 100644 (file)
--- a/sudo.h
+++ b/sudo.h
@@ -142,15 +142,15 @@ struct generic_alias {
 #define VALIDATE_ERROR          -1
 
 /*
- *  the arguments passed to log_error() are ANDed with GLOBAL_PROBLEM
+ *  The arguments passed to log_error() are ANDed with GLOBAL_PROBLEM
  *  If the result is TRUE, the argv is NOT logged with the error message
+ *  NOTE: 0x00 - 0x04 below must correspond to 0x00 - 0x04 above.
  */
-#define GLOBAL_PROBLEM           0x20
+#define GLOBAL_PROBLEM           0x100
 #define ALL_SYSTEMS_GO           0x00
 #define GLOBAL_NO_PW_ENT         ( 0x01 | GLOBAL_PROBLEM )
-#define GLOBAL_NO_SPW_ENT        ( 0x02 | GLOBAL_PROBLEM )
-#define GLOBAL_NO_HOSTNAME       ( 0x03 | GLOBAL_PROBLEM )
-#define GLOBAL_HOST_UNREGISTERED ( 0x04 | GLOBAL_PROBLEM )
+#define GLOBAL_NO_HOSTNAME       ( 0x02 | GLOBAL_PROBLEM )
+#define GLOBAL_HOST_UNREGISTERED ( 0x03 | GLOBAL_PROBLEM )
 #define PASSWORD_NOT_CORRECT     0x05
 #define PASSWORDS_NOT_CORRECT    0x06
 #define NO_SUDOERS_FILE          ( 0x07 | GLOBAL_PROBLEM )
@@ -158,12 +158,12 @@ struct generic_alias {
 #define SUDOERS_WRONG_OWNER      ( 0x09 | GLOBAL_PROBLEM )
 #define SUDOERS_WRONG_MODE       ( 0x0A | GLOBAL_PROBLEM )
 #define SUDOERS_NOT_FILE         ( 0x0B | GLOBAL_PROBLEM )
-#define SPOOF_ATTEMPT            0x0D
-#define BAD_STAMPDIR             0x0E
-#define BAD_STAMPFILE            0x0F
-#define BAD_ALLOCATION           0x10
+#define SPOOF_ATTEMPT            0x0C
+#define BAD_STAMPDIR             0x0D
+#define BAD_STAMPFILE            0x0E
+#define BAD_ALLOCATION           0x0F
 #ifdef HAVE_KERB5
-#define GLOBAL_KRB5_INIT_ERR     ( 0x11 | GLOBAL_PROBLEM )
+#define GLOBAL_KRB5_INIT_ERR     ( 0x10 | GLOBAL_PROBLEM )
 #endif /* HAVE_KERB5 */
 
 /*