summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-07-15 22:38:36 +0000
committermillert <millert@openbsd.org>2002-07-15 22:38:36 +0000
commita47aac791b487cc499dcec43413f84dbe8a7133c (patch)
treef99f85f37da4e011a08135ca4d617450396ed136
parentAdd sshd to the list of fake users whose mail goes to root; Sam Smith (diff)
downloadwireguard-openbsd-a47aac791b487cc499dcec43413f84dbe8a7133c.tar.xz
wireguard-openbsd-a47aac791b487cc499dcec43413f84dbe8a7133c.zip
fix typo (pw vs. pwd) in unused code
-rw-r--r--usr.sbin/cron/do_command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/do_command.c b/usr.sbin/cron/do_command.c
index 434cce81107..e575641b49b 100644
--- a/usr.sbin/cron/do_command.c
+++ b/usr.sbin/cron/do_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: do_command.c,v 1.20 2002/07/15 22:16:50 millert Exp $ */
+/* $OpenBSD: do_command.c,v 1.21 2002/07/15 22:38:36 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
*/
@@ -21,7 +21,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char const rcsid[] = "$OpenBSD: do_command.c,v 1.20 2002/07/15 22:16:50 millert Exp $";
+static char const rcsid[] = "$OpenBSD: do_command.c,v 1.21 2002/07/15 22:38:36 millert Exp $";
#endif
#include "cron.h"
@@ -245,7 +245,7 @@ child_process(entry *e, user *u) {
setgid(e->pwd->pw_gid);
initgroups(usernm, e->pwd->pw_gid);
setlogin(usernm);
- setuid(e->pw->pw_uid); /* we aren't root after this... */
+ setuid(e->pwd->pw_uid); /* we aren't root after this... */
#endif /* LOGIN_CAP */
chdir(env_get("HOME", e->envp));