From 01c0c9b3a669355117002d06a82a8525d74ade47 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 13 May 2004 14:22:19 +0000 Subject: Pasto, change a cast from uid_t to gid_t (no real change...) --- usr.sbin/cron/atrun.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/cron/atrun.c b/usr.sbin/cron/atrun.c index 03eb9665084..d34d56d73e1 100644 --- a/usr.sbin/cron/atrun.c +++ b/usr.sbin/cron/atrun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atrun.c,v 1.10 2003/06/17 21:56:26 millert Exp $ */ +/* $OpenBSD: atrun.c,v 1.11 2004/05/13 14:22:18 millert Exp $ */ /* * Copyright (c) 2002-2003 Todd C. Miller @@ -21,7 +21,7 @@ */ #if !defined(lint) && !defined(LINT) -static const char rcsid[] = "$OpenBSD: atrun.c,v 1.10 2003/06/17 21:56:26 millert Exp $"; +static const char rcsid[] = "$OpenBSD: atrun.c,v 1.11 2004/05/13 14:22:18 millert Exp $"; #endif #include "cron.h" @@ -351,7 +351,7 @@ run_job(atjob *job, char *atfile) cp = ep + 5; errno = 0; ngid = strtol(cp, &ep, 10); - if (errno == ERANGE || (uid_t)ngid > GID_MAX || cp == ep || *ep != '\n') + if (errno == ERANGE || (gid_t)ngid > GID_MAX || cp == ep || *ep != '\n') goto bad_file; /* Pull out mailto user (and always_mail flag) */ -- cgit v1.2.3