Bug 13572 - Vacation program won't include .vacation.msg
Summary: Vacation program won't include .vacation.msg
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Powertools
Classification: Retired
Component: vacation
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-07-07 18:59 UTC by kevin_myer
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-07-07 18:59:43 UTC
Embargoed:


Attachments (Terms of Use)

Description kevin_myer 2000-07-07 18:59:42 UTC
There is a bug in the vacation program - it won't include the .vacation.msg
file and simply sends out an email without any body.  The pipe to include
the message is being closed before anything is being written to it.  I
believe this vacation is from Powertools 6.2 but I'm using it with RH 6.1
with the latest patches.

The fix I have found is trivial:

--- vacation.c.orig	Fri Jul  7 14:58:08 2000
+++ vacation.c	Fri Jul  7 14:42:16 2000
@@ - 505,7 +505,7 @@
		syslog(LOG_ERR, "vacation: pipe: %s", strerror(errno));
		exit(1);
	}
-	i = vfork();
+	i = fork();
	if (i < 0) {
		syslog(LOG_ERR, "vacation: fork: %s", strerror(errno));
		exit(1);

Comment 1 Ngo Than 2000-07-10 14:26:38 UTC
thanks for your report and the patch file.
I have apply the patch file to 1.2.0.


Note You need to log in before you can comment on or make changes to this bug.