summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/entry.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-03-04 21:47:08 +0000
committermillert <millert@openbsd.org>2003-03-04 21:47:08 +0000
commitc817b38de2e96fb3f63f3d14408b46ffbbdf313b (patch)
tree97eb1355312bcee55004dca1382e65c2a4f5e70a /usr.sbin/cron/entry.c
parentfix some spelling typos (diff)
downloadwireguard-openbsd-c817b38de2e96fb3f63f3d14408b46ffbbdf313b.tar.xz
wireguard-openbsd-c817b38de2e96fb3f63f3d14408b46ffbbdf313b.zip
Deref the correct passwd pointer in a Debug statement.
Diffstat (limited to 'usr.sbin/cron/entry.c')
-rw-r--r--usr.sbin/cron/entry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/entry.c b/usr.sbin/cron/entry.c
index 6968f47d393..8db10b45cd6 100644
--- a/usr.sbin/cron/entry.c
+++ b/usr.sbin/cron/entry.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entry.c,v 1.17 2003/02/27 15:02:44 millert Exp $ */
+/* $OpenBSD: entry.c,v 1.18 2003/03/04 21:47:08 millert Exp $ */
/*
* Copyright 1988,1990,1993,1994 by Paul Vixie
@@ -23,7 +23,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char const rcsid[] = "$OpenBSD: entry.c,v 1.17 2003/02/27 15:02:44 millert Exp $";
+static char const rcsid[] = "$OpenBSD: entry.c,v 1.18 2003/03/04 21:47:08 millert Exp $";
#endif
/* vix 26jan87 [RCS'd; rest of log is in RCS file]
@@ -255,7 +255,7 @@ load_entry(FILE *file, void (*error_func)(), struct passwd *pw, char **envp) {
goto eof;
}
Debug(DPARS, ("load_entry()...uid %ld, gid %ld\n",
- (long)e->pwd->pw_uid, (long)e->pwd->pw_gid))
+ (long)pw->pw_uid, (long)pw->pw_gid))
} else if (ch == '*') {
ecode = e_cmd;
goto eof;