Great Circle Associates Majordomo-Users
(June 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: resend not deleting files in /tmp/
From: Dallas N Antley <dna @ clas . ufl . edu>
Date: Thu, 23 Jun 1994 16:08:57 -0400
To: majordomo-users @ greatcircle . com
Reply-to: dna @ clas . ufl . edu

OS/Machine: 	SunOS cutter 4.1.3 1 sun4m
Perl:	$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
	Patch level: 36
Majordomo:	$majordomo_version = "1.92";

Description:	After sending a message out via 'resend', non-deleted
		data files of the form /tmp/resend.$PID.{in,out} were
		discovered.  Over time, these can build up on the
		central mail server.

Fix:		A one-line change to the specific call to unlink().

% diff -c resend.dist resend
*** resend.dist Thu Jun 23 15:16:53 1994
--- resend      Thu Jun 23 15:17:23 1994
***************
*** 344,350 ****
      }
      close(MAILOUT);
      close(MAILIN);
!     unlink("/tmp/resend.$$.*");
      exit(0);
  }
  
--- 344,350 ----
      }
      close(MAILOUT);
      close(MAILIN);
!     unlink(</tmp/resend.$$.*>);
      exit(0);
  }

                                Dallas Antley
				dna@{clas,math}.ufl.edu
---------------------------------------------------------------------
"When you build great technologies, the support comes naturally."
						--SunSoft, '93


Follow-Ups:
Indexed By Date Previous: Re: 1.92 resend error (Off the Topid, sorry)
From: Sean Kamath <kamath@catenary.wv.tek.com>
Next: Addressing problem
From: bill@biome.bio.ns.ca (Bill Silvert)
Indexed By Thread Previous: Limit service to a domain
From: Rizzotti.Sven@ch.swissbank.com (Rizzotti Sven)
Next: Re: resend not deleting files in /tmp/
From: "Robert A. Hayden" <hayden@vorlon.mankato.msus.edu>

Google
 
Search Internet Search www.greatcircle.com