Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/libexec/atrun Pull up revision 1.9 (requested by 195 in...
details: https://anonhg.NetBSD.org/src/rev/09f13576658c
branches: netbsd-1-6
changeset: 527808:09f13576658c
user: tv <tv%NetBSD.org@localhost>
date: Mon Jun 10 16:04:48 2002 +0000
description:
Pull up revision 1.9 (requested by 195 in ticket #0):
Make scanf parameters and variable types match. This helps archs
where sizeof(int) != sizeof(long).
diffstat:
libexec/atrun/atrun.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 02485c40dcce -r 09f13576658c libexec/atrun/atrun.c
--- a/libexec/atrun/atrun.c Mon Jun 10 16:03:28 2002 +0000
+++ b/libexec/atrun/atrun.c Mon Jun 10 16:04:48 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atrun.c,v 1.8 2000/06/25 13:32:34 simonb Exp $ */
+/* $NetBSD: atrun.c,v 1.8.2.1 2002/06/10 16:04:48 tv Exp $ */
/*
* atrun.c - run jobs queued by at; run with root privileges.
@@ -62,7 +62,7 @@
#if 0
static char rcsid[] = "$OpenBSD: atrun.c,v 1.7 1997/09/08 22:12:10 millert Exp $";
#else
-__RCSID("$NetBSD: atrun.c,v 1.8 2000/06/25 13:32:34 simonb Exp $");
+__RCSID("$NetBSD: atrun.c,v 1.8.2.1 2002/06/10 16:04:48 tv Exp $");
#endif
static int debug = 0;
@@ -152,8 +152,8 @@
off_t size;
struct passwd *pentry;
int fflags;
- uid_t nuid;
- gid_t ngid;
+ uint nuid;
+ uint ngid;
PRIV_START
@@ -230,7 +230,7 @@
(void)fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
(void)snprintf(fmt, sizeof(fmt),
- "#!/bin/sh\n# atrun uid=%%ld gid=%%ld\n# mail %%%ds %%d",
+ "#!/bin/sh\n# atrun uid=%%u gid=%%u\n# mail %%%ds %%d",
LOGIN_NAME_MAX);
if (fscanf(stream, fmt, &nuid, &ngid, mailbuf, &send_mail) != 4) {
syslog(LOG_ERR, "File %s is in wrong format - aborting",
Home |
Main Index |
Thread Index |
Old Index