Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/cron/dist Fix typo in function name.
details: https://anonhg.NetBSD.org/src/rev/ab6594d347dd
branches: trunk
changeset: 321218:ab6594d347dd
user: htodd <htodd%NetBSD.org@localhost>
date: Tue Mar 06 21:21:27 2018 +0000
description:
Fix typo in function name.
diffstat:
external/bsd/cron/dist/crontab.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r cf0e9cea1a67 -r ab6594d347dd external/bsd/cron/dist/crontab.c
--- a/external/bsd/cron/dist/crontab.c Tue Mar 06 21:11:51 2018 +0000
+++ b/external/bsd/cron/dist/crontab.c Tue Mar 06 21:21:27 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crontab.c,v 1.14 2017/06/09 17:36:30 christos Exp $ */
+/* $NetBSD: crontab.c,v 1.15 2018/03/06 21:21:27 htodd Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -25,7 +25,7 @@
#if 0
static char rcsid[] = "Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp";
#else
-__RCSID("$NetBSD: crontab.c,v 1.14 2017/06/09 17:36:30 christos Exp $");
+__RCSID("$NetBSD: crontab.c,v 1.15 2018/03/06 21:21:27 htodd Exp $");
#endif
#endif
@@ -66,7 +66,7 @@
static int replace_cmd(void);
static int allowed(const char *, const char *, const char *);
static int in_file(const char *, FILE *, int);
-static int relinguish_priv(void);
+static int relinquish_priv(void);
static int regain_priv(void);
static __dead void
@@ -265,7 +265,7 @@
* the race.
*/
- if (relinguish_priv() < OK) {
+ if (relinquish_priv() < OK) {
err(ERROR_EXIT, "swapping uids");
}
if (!(NewCrontab = fopen(Filename, "r"))) {
@@ -689,7 +689,7 @@
"# (%s installed on %-24.24s)\n", Filename, ctime(&now));
(void)fprintf(tmp,
"# (Cron version %s -- %s)\n", CRON_VERSION,
- "$NetBSD: crontab.c,v 1.14 2017/06/09 17:36:30 christos Exp $");
+ "$NetBSD: crontab.c,v 1.15 2018/03/06 21:21:27 htodd Exp $");
/* copy the crontab to the tmp
*/
@@ -882,7 +882,7 @@
#ifdef HAVE_SAVED_UIDS
-static int relinguish_priv(void) {
+static int relinquish_priv(void) {
return (setegid(rgid) || seteuid(ruid)) ? -1 : 0;
}
@@ -892,7 +892,7 @@
#else /*HAVE_SAVED_UIDS*/
-static int relinguish_priv(void) {
+static int relinquish_priv(void) {
return (setregid(egid, rgid) || setreuid(euid, ruid)) ? -1 : 0;
}
Home |
Main Index |
Thread Index |
Old Index