From: Todd C. Miller Date: Mon, 7 Oct 1996 05:05:33 +0000 (+0000) Subject: ++version X-Git-Tag: SUDO_1_5_2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e712f1152ca9616272dc748dd301e1c554051c2c;p=sudo ++version --- diff --git a/check.c b/check.c index ae126c289..624a9b0bd 100644 --- 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.", diff --git a/compat.h b/compat.h index 99cb67706..0973e1656 100644 --- 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 diff --git a/dce_pwent.c b/dce_pwent.c index 8876cb4e0..d9cd5cc74 100644 --- a/dce_pwent.c +++ b/dce_pwent.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 diff --git a/emul/utime.h b/emul/utime.h index ab28bd896..7a64c1fbc 100644 --- a/emul/utime.h +++ b/emul/utime.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 diff --git a/find_path.c b/find_path.c index 91eaccb6f..71ec47860 100644 --- a/find_path.c +++ b/find_path.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 diff --git a/getspwuid.c b/getspwuid.c index 197a0c132..63d41aae2 100644 --- a/getspwuid.c +++ b/getspwuid.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 diff --git a/getwd.c b/getwd.c index 723880e56..bf4db819a 100644 --- 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 diff --git a/goodpath.c b/goodpath.c index 8f8fa2d33..f9b70aaf2 100644 --- a/goodpath.c +++ b/goodpath.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 @@ -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) diff --git a/ins_2001.h b/ins_2001.h index b564639c5..4a5e92c68 100644 --- a/ins_2001.h +++ b/ins_2001.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 diff --git a/ins_classic.h b/ins_classic.h index e9d92121b..c4354c211 100644 --- a/ins_classic.h +++ b/ins_classic.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 diff --git a/ins_csops.h b/ins_csops.h index 474203ca4..ee9423e71 100644 --- a/ins_csops.h +++ b/ins_csops.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 diff --git a/ins_goons.h b/ins_goons.h index f0d28602b..f7a649818 100644 --- a/ins_goons.h +++ b/ins_goons.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 diff --git a/insults.h b/insults.h index ec565cace..60a88a040 100644 --- 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 diff --git a/interfaces.c b/interfaces.c index b3d18dfe7..172827e3b 100644 --- a/interfaces.c +++ b/interfaces.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 diff --git a/options.h b/options.h index 50a377335..9e8aff4c4 100644 --- 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 diff --git a/pathnames.h.in b/pathnames.h.in index c9eaf01df..becf3d1c4 100644 --- a/pathnames.h.in +++ b/pathnames.h.in @@ -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/version.h b/version.h index 4846171b9..16ff770d9 100644 --- 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 */