File: calendar_fork_cleanup.diff

package info (click to toggle)
bsdmainutils 12.1.8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,108 kB
  • sloc: ansic: 2,356; sh: 131; python: 105; makefile: 50; perl: 39
file content (10 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
--- bsdmainutils/usr.bin/calendar/calendar.c.orig	2020-07-10 12:54:50.794377595 +0200
+++ bsdmainutils/usr.bin/calendar/calendar.c	2020-07-10 12:55:46.006196455 +0200
@@ -199,6 +199,7 @@
 						exit(0);
 				}
 				cal();
+				endpwent();
 				exit(0);
 			}
 			/* parent: wait a reasonable time, then kill child if