Author: kevlo Date: Mon Nov 22 06:37:21 2010 New Revision: 215655 URL: http://svn.freebsd.org/changeset/base/215655
Log: MFC r215518: Close file and directory descriptors Modified: stable/8/usr.bin/at/at.c Modified: stable/8/usr.bin/at/at.c ============================================================================== --- stable/8/usr.bin/at/at.c Mon Nov 22 06:31:42 2010 (r215654) +++ stable/8/usr.bin/at/at.c Mon Nov 22 06:37:21 2010 (r215655) @@ -524,6 +524,7 @@ list_jobs(long *joblist, int len) jobno); } PRIV_END + closedir(spool); } static void @@ -594,6 +595,7 @@ process_jobs(int argc, char **argv, int while((ch = getc(fp)) != EOF) { putchar(ch); } + fclose(fp); } break; @@ -604,6 +606,7 @@ process_jobs(int argc, char **argv, int } } } + closedir(spool); } /* delete_jobs */ #define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"