From owner-freebsd-current Sun Feb 25 1:58:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by hub.freebsd.org (Postfix) with ESMTP id 051BF37B401 for ; Sun, 25 Feb 2001 01:58:41 -0800 (PST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost) by zibbi.icomtek.csir.co.za (8.11.1/8.11.1) id f1P9wYM48544; Sun, 25 Feb 2001 11:58:34 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <200102250958.f1P9wYM48544@zibbi.icomtek.csir.co.za> Subject: m4 leaving /tmp/m4* directories To: kris@FreeBSD.FreeBSD.ORG Date: Sun, 25 Feb 2001 11:58:34 +0200 (SAT) Cc: current@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG After m4 has been changed to do its temporary work in a subdirectory, "make world" leaves a lot of /tmp/m4* directories behind. This patch fix it for me. It is not protected by a "#ifndef vms" though. I don't know if vms has rmdir() or not and I'm not sure if we care about it. John -- John Hay -- John.Hay@icomtek.csir.co.za Index: usr.bin/m4/main.c =================================================================== RCS file: /home/ncvs/src/usr.bin/m4/main.c,v retrieving revision 1.8 diff -u -r1.8 main.c --- usr.bin/m4/main.c 2000/11/22 11:09:30 1.8 +++ usr.bin/m4/main.c 2001/02/20 05:58:02 @@ -227,9 +227,10 @@ (void) remove(m4temp); #else (void) unlink(m4temp); - (void) rmdir(m4dir); #endif } + if (m4dir != NULL) + (void) rmdir(m4dir); return 0; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message