Upgrade to 3.1.13 OBS-URL: https://build.opensuse.org/request/show/178540 OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=59
31 lines
725 B
Diff
31 lines
725 B
Diff
Index: at.c
|
|
===================================================================
|
|
--- at.c.orig
|
|
+++ at.c
|
|
@@ -616,10 +616,13 @@ list_jobs(long *joblist, int len)
|
|
if ((pwd = getpwuid(buf.st_uid)))
|
|
printf("%ld\t%s %c %s\n", jobno, timestr, queue, pwd->pw_name);
|
|
else
|
|
printf("%ld\t%s %c\n", jobno, timestr, queue);
|
|
}
|
|
+
|
|
+ closedir(spool);
|
|
+
|
|
PRIV_END
|
|
}
|
|
|
|
static int
|
|
process_jobs(int argc, char **argv, int what)
|
|
@@ -698,10 +701,11 @@ process_jobs(int argc, char **argv, int
|
|
if (fp) {
|
|
while ((ch = getc(fp)) != EOF) {
|
|
putchar(ch);
|
|
}
|
|
done = 1;
|
|
+ fclose(fp);
|
|
}
|
|
else {
|
|
perr("Cannot open %.500s", dirent->d_name);
|
|
rc = EXIT_FAILURE;
|
|
}
|