]> granicus.if.org Git - sudo/commitdiff
++version
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 7 Oct 1996 05:05:33 +0000 (05:05 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 7 Oct 1996 05:05:33 +0000 (05:05 +0000)
17 files changed:
check.c
compat.h
dce_pwent.c
emul/utime.h
find_path.c
getspwuid.c
getwd.c
goodpath.c
ins_2001.h
ins_classic.h
ins_csops.h
ins_goons.h
insults.h
interfaces.c
options.h
pathnames.h.in
version.h

diff --git a/check.c b/check.c
index ae126c289ea1a7937a387cbdf2b658a1472ec1fe..624a9b0bd4cf1b61463642b982b6010b1e71ff19 100644 (file)
--- a/check.c
+++ b/check.c
@@ -1,5 +1,5 @@
 /*
- * CU sudo version 1.5.1 (based on Root Group sudo version 1.1)
+ * CU sudo version 1.5.2 (based on Root Group sudo version 1.1)
  *
  * This software comes with no waranty whatsoever, use at your own risk.
  *
@@ -235,7 +235,7 @@ static int check_timestamp()
     timedir_is_good = 1;       /* now there's an assumption for ya... */
 
     /* become root */
-    set_perms(PERM_ROOT);
+    set_perms(PERM_ROOT, 0);
 
     /*
      * walk through the path one directory at a time
@@ -298,7 +298,7 @@ static int check_timestamp()
     }
 
     /* relinquish root */
-    set_perms(PERM_USER);
+    set_perms(PERM_USER, 0);
 
     return (timestamp_is_old);
 }
@@ -350,7 +350,7 @@ static void update_timestamp()
 {
     if (timedir_is_good) {
        /* become root */
-       set_perms(PERM_ROOT);
+       set_perms(PERM_ROOT, 0);
 
        if (touch(timestampfile) < 0) {
            int fd = open(timestampfile, O_WRONLY | O_CREAT | O_TRUNC, 0600);
@@ -362,7 +362,7 @@ static void update_timestamp()
        }
 
        /* relinquish root */
-       set_perms(PERM_USER);
+       set_perms(PERM_USER, 0);
     }
 }
 
@@ -391,13 +391,13 @@ void remove_timestamp()
 #endif /* USE_TTY_TICKETS */
 
     /* become root */
-    set_perms(PERM_ROOT);
+    set_perms(PERM_ROOT, 0);
 
     /* remove the ticket file */
     (void) unlink(timestampfile);
 
     /* relinquish root */
-    set_perms(PERM_USER);
+    set_perms(PERM_USER, 0);
 }
 
 
@@ -420,7 +420,7 @@ static void check_passwd()
     sd = &sd_dat;
 
     /* Initialize SecurID. */
-    set_perms(PERM_ROOT);
+    set_perms(PERM_ROOT, 0);
     creadcfg();
     if (sd_init(sd) != 0) {
        (void) fprintf(stderr, "%s: Cannot contact SecurID server\n", Argv[0]);
@@ -432,7 +432,7 @@ static void check_passwd()
      */
     while (counter > 0) {
        if (sd_auth(sd) == ACM_OK) {
-           set_perms(PERM_USER);
+           set_perms(PERM_USER, 0);
            return;
        }
 
@@ -443,7 +443,7 @@ static void check_passwd()
        (void) fprintf(stderr, "%s\n", INCORRECT_PASSWORD);
 #endif /* USE_INSULTS */
     }
-    set_perms(PERM_USER);
+    set_perms(PERM_USER, 0);
 
     if (counter > 0) {
        log_error(PASSWORD_NOT_CORRECT);
@@ -478,15 +478,15 @@ static void check_passwd()
 
 #ifdef HAVE_SKEY
        /* rewrite the prompt if using s/key since the challenge can change */
-       set_perms(PERM_ROOT);
+       set_perms(PERM_ROOT, 0);
        prompt = sudo_skeyprompt(&skey, prompt);
-       set_perms(PERM_USER);
+       set_perms(PERM_USER, 0);
 #endif /* HAVE_SKEY */
 #ifdef HAVE_OPIE
        /* rewrite the prompt if using OPIE since the challenge can change */
-       set_perms(PERM_ROOT);
+       set_perms(PERM_ROOT, 0);
        prompt = sudo_opieprompt(&opie, prompt);
-       set_perms(PERM_USER);
+       set_perms(PERM_USER, 0);
 #endif /* HAVE_OPIE */
 
        /* get a password from the user */
@@ -512,23 +512,23 @@ static void check_passwd()
 #ifdef HAVE_SKEY
        /* Only check s/key db if the user exists there */
        if (skey.keyfile) {
-           set_perms(PERM_ROOT);
+           set_perms(PERM_ROOT, 0);
            if (skeyverify(&skey, pass) == 0) {
-               set_perms(PERM_USER);
+               set_perms(PERM_USER, 0);
                return;             /* if the key is correct return() */
            }
-           set_perms(PERM_USER);
+           set_perms(PERM_USER, 0);
        }
 #endif /* HAVE_SKEY */
 #ifdef HAVE_OPIE
        /* Only check OPIE db if the user exists there */
        if (opie.opie_flags) {
-           set_perms(PERM_ROOT);
+           set_perms(PERM_ROOT, 0);
            if (opieverify(&opie, pass) == 0) {
-               set_perms(PERM_USER);
+               set_perms(PERM_USER, 0);
                return;             /* if the key is correct return() */
            }
-           set_perms(PERM_USER);
+           set_perms(PERM_USER, 0);
        }
 #endif /* HAVE_OPIE */
 #if !defined(HAVE_SKEY) || !defined(SKEY_ONLY)
@@ -654,7 +654,7 @@ static int sudo_krb_validate_user(pw_ent, pass)
      * Update the ticket if password is ok.  Kerb4 expects
      * the ruid and euid to be the same here so we setuid to root.
      */
-    set_perms(PERM_ROOT);
+    set_perms(PERM_ROOT, 0);
     k_errno = krb_get_pw_in_tkt(pw_ent->pw_name, "", realm, "krbtgt", realm,
        DEFAULT_TKT_LIFE, pass);
 
@@ -669,7 +669,7 @@ static int sudo_krb_validate_user(pw_ent, pass)
                       krb_err_txt[k_errno]);
 
     /* done with rootly stuff */
-    set_perms(PERM_USER);
+    set_perms(PERM_USER, 0);
 
     return(!(k_errno == INTK_OK));
 }
@@ -844,7 +844,7 @@ static void reminder()
     (void) fprintf(stderr, "\n%s\n%s\n\n%s\n%s\n\n",
 #else
     (void) fprintf(stderr, "\n%s\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n\n",
-       "    CU sudo version 1.5.1, based on Root Group sudo version 1.1",
+       "    CU sudo version 1.5.2, based on Root Group sudo version 1.1",
        "    sudo version 1.1, Copyright (C) 1991 The Root Group, Inc.",
        "    sudo comes with ABSOLUTELY NO WARRANTY.  This is free software,",
        "    and you are welcome to redistribute it under certain conditions.",
index 99cb67706298efddedc584bbb865725d773d9bcb..0973e165653410d3dc8b263b48a3b8b67fa18825 100644 (file)
--- a/compat.h
+++ b/compat.h
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index 8876cb4e0328a8df4dd07506c7d888015f82afad..d9cd5cc74537d2c8ab28de76980bfc3bc82a1f9e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index ab28bd896456266d6d6a1b3bc239a768af69502c..7a64c1fbc9d222864d31831aed5af63a7aacc3ee 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index 91eaccb6f282f7b09e84bf3a70cf24d1f3fc7a1e..71ec478606f80c656e8f0a6c67e6c7cc3ef039d4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index 197a0c132922547538b9b4f9c97cac3677500518..63d41aae263d8a27b099cec2b4837dd5509919f8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
diff --git a/getwd.c b/getwd.c
index 723880e56b5f0bc3d0f310b3958eb6a3c7bccecd..bf4db819ae0fb8dcf40d5483729e81686ed4c88a 100644 (file)
--- a/getwd.c
+++ b/getwd.c
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index 8f8fa2d3320e4a6342577af06513ffa20256ddf1..f9b70aaf2cb3c26bd774ac545386a23de6971b69 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -77,12 +77,12 @@ char * sudo_goodpath(path)
        return(NULL);
 
     /* we need to be root for the stat */
-    set_perms(PERM_ROOT);
+    set_perms(PERM_ROOT, 0);
 
     err = stat(path, &statbuf);
 
     /* discard root perms */
-    set_perms(PERM_USER);
+    set_perms(PERM_USER, 0);
 
     /* stat(3) failed */
     if (err)
index b564639c582b407103b240866876bba95e87bd44..4a5e92c684b04fdf2601ddef4fa17587bf44f04d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index e9d92121bfbc22b48fa54e7f55f606f52b35f39f..c4354c21136c48dcd6d6dc81f6af1c3cbecb58f0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index 474203ca463cac67f1c894ab231e69b9632afc69..ee9423e718432580c913f57d7065db276b28ebfa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index f0d28602b4b13e9a14f511df52ed816fe17b4720..f7a649818a033c3d251d47f657ce27edd678d6e8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index ec565cacec6f7257852b40df7067eed2fcc69afe..60a88a0403daef84d0fac6ddfe7d6c57a00a1478 100644 (file)
--- a/insults.h
+++ b/insults.h
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index b3d18dfe74713e9138a8094caf217f8d4e3df366..172827e3b06a57f99ebe1fefa91b040fcd539bcc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index 50a377335230a318eb46acf23cff3e16f58181e7..9e8aff4c4f69a8fbbe1368bbdad8e28d6550da8b 100644 (file)
--- a/options.h
+++ b/options.h
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index c9eaf01dfb093e48109d7e10a9762b389bebbfb0..becf3d1c41322fa569895e2953f5d6d818cf1e38 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
index 4846171b9179f6fdc2d3dacc45b3a230a478edc1..16ff770d9de6b7b27e8fde59e3acce142b3310c2 100644 (file)
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
 /*
- *  CU sudo version 1.5.1
+ *  CU sudo version 1.5.2
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -23,6 +23,6 @@
 #ifndef _SUDO_VERSION_H
 #define _SUDO_VERSION_H
 
-static char version[] = "1.5.1";
+static char version[] = "1.5.2";
 
 #endif /* _SUDO_VERSION_H */