Module Name: src Committed By: christos Date: Wed Nov 24 17:40:41 UTC 2010
Modified Files: src/usr.bin/at: at.c Log Message: PR/44147: Henning Petersen: Add missing closedir calls. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/usr.bin/at/at.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/at/at.c diff -u src/usr.bin/at/at.c:1.27 src/usr.bin/at/at.c:1.28 --- src/usr.bin/at/at.c:1.27 Sat Jan 17 20:02:41 2009 +++ src/usr.bin/at/at.c Wed Nov 24 12:40:41 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: at.c,v 1.27 2009/01/18 01:02:41 lukem Exp $ */ +/* $NetBSD: at.c,v 1.28 2010/11/24 17:40:41 christos Exp $ */ /* * at.c : Put file into atrun queue @@ -72,7 +72,7 @@ #if 0 static char rcsid[] = "$OpenBSD: at.c,v 1.15 1998/06/03 16:20:26 deraadt Exp $"; #else -__RCSID("$NetBSD: at.c,v 1.27 2009/01/18 01:02:41 lukem Exp $"); +__RCSID("$NetBSD: at.c,v 1.28 2010/11/24 17:40:41 christos Exp $"); #endif #endif @@ -195,7 +195,7 @@ (void)sigemptyset(&act.sa_mask); act.sa_flags = 0; - sigaction(SIGINT, &act, NULL); + (void)sigaction(SIGINT, &act, NULL); (void)strlcpy(atfile, _PATH_ATJOBS, sizeof(atfile)); ppos = atfile + strlen(atfile); @@ -225,7 +225,7 @@ * Set an alarm so a timeout occurs after ALARMC seconds, in case * something is seriously broken. */ - sigaction(SIGALRM, &act, NULL); + (void)sigaction(SIGALRM, &act, NULL); (void)alarm(ALARMC); (void)fcntl(lockdes, F_SETLKW, &lock); (void)alarm(0); @@ -484,6 +484,7 @@ 6, (S_IXUSR & buf.st_mode) ? "" : "(done)", jobno); } + (void)closedir(spool); PRIV_END; } @@ -565,6 +566,7 @@ } } } + (void)closedir(spool); } /* Global functions */