Debian bug report logs - #1684
fvwm creates /tmp/fvwmrcXXXX

Package: fvwm; Reported by: Austin Donnelly <and1000@cam.ac.uk>; Done: Austin Donnelly <and1000@cam.ac.uk>.

Message received at debian-bugs-done:


From cam.ac.uk!and1000 Sat Oct 28 11:47:53 1995
Return-Path: <and1000@cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0t9GIL-000EEFC; Sat, 28 Oct 95 11:47 PDT
Received: from black.csi.cam.ac.uk by pixar.com with SMTP id AA21547
  (5.67b/IDA-1.5 for debian-bugs-done-pipe@mongo.pixar.com); Sat, 28 Oct 1995 11:47:15 -0700
Received: from valour.pem.cam.ac.uk [131.111.200.47] (ident = root) 
	by black.csi.cam.ac.uk with smtp 
	(Smail-3.1.29.0 #36) id m0t9GI2-000CCQC; Sat, 28 Oct 95 18:47 GMT
Received: by valour.pem.cam.ac.uk
	id m0t9GHz-000z67C
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Sat, 28 Oct 95 18:47 GMT
Date: Sat, 28 Oct 1995 18:47:31 +0000 (GMT)
From: Austin Donnelly <and1000@cam.ac.uk>
X-Sender: and1000@valour.pem.cam.ac.uk
To: debian-bugs-done@pixar.com
Subject: Bug#1684: fvwm creates /tmp/fvwmrcXXXX
Message-Id: <Pine.LNX.3.91.951028184619.27147C-100000@valour.pem.cam.ac.uk>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Fixed in fvwm-1.24r-8

Austin

Notification sent to Austin Donnelly <and1000@cam.ac.uk>:
Bug acknowledged by developer. Full text available.
Reply sent to Austin Donnelly <and1000@cam.ac.uk>:
You have taken responsibility. Full text available.

Message received at debian-bugs:


From cam.ac.uk!and1000 Fri Oct 20 17:55:34 1995
Return-Path: <and1000@cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0t6SDl-000BWzC; Fri, 20 Oct 95 17:55 PDT
Received: from black.csi.cam.ac.uk by pixar.com with SMTP id AA07188
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Fri, 20 Oct 1995 17:55:06 -0700
Received: from valour.pem.cam.ac.uk [131.111.200.47] (ident = root) 
	by black.csi.cam.ac.uk with smtp 
	(Smail-3.1.29.0 #36) id m0t6SDf-000CBnC; Sat, 21 Oct 95 01:55 BST
Received: by valour.pem.cam.ac.uk
	id m0t6SDl-000z5NC
	(Debian /\oo/\ Smail3.1.29.1 #29.33); Sat, 21 Oct 95 01:55 BST
Date: Sat, 21 Oct 1995 01:55:33 +0100 (BST)
From: Austin Donnelly <and1000@cam.ac.uk>
X-Sender: and1000@valour.pem.cam.ac.uk
To: debian-bugs@pixar.com
Subject: Re: Bug#1684: fvwm creates /tmp/fvwmrcXXXX - fixed: patch included
Message-Id: <Pine.LNX.3.91.951021015313.15214A-100000@valour.pem.cam.ac.uk>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


I've had a look at this bug: its some pretty dire code in the section
the reads your .fvwmrc.

I submit the following patch to fix the problem.

Austin

--- configure.c.old	Fri Oct 20 16:48:44 1995
+++ configure.c	Fri Oct 20 21:36:12 1995
@@ -1979,12 +1979,10 @@
     /* Generate a temporary filename.  Honor the TMPDIR environment variable,
        if set. Hope nobody deletes this file! */
 
-    if ((vc=getenv("TMPDIR"))) {
-      strcpy(tmp_name, vc);
-    } else {
-      strcpy(tmp_name, "/tmp");
+    if ((vc=getenv("TMPDIR")) == NULL) {
+      vc = "/tmp";
     }
-    strcat(tmp_name, "/fvwmrcXXXXX");
+    sprintf(tmp_name, "%s/fvwmrc.%05d", vc, getpid());
     mktemp(tmp_name);
     
     if (*tmp_name == '\0')

Acknowledgement sent to Austin Donnelly <and1000@cam.ac.uk>:
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1684; Package fvwm. Full text available.

Message received at debian-bugs:


From thor.cam.ac.uk!and1000 Sun Oct 15 17:46:40 1995
Return-Path: <and1000@thor.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0t4dhQ-00063gC; Sun, 15 Oct 95 17:46 PDT
Received: from hammer.thor.cam.ac.uk by pixar.com with SMTP id AA28173
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 15 Oct 1995 17:46:17 -0700
Received: by hammer.thor.cam.ac.uk 
	(Smail-3.1.29.0 #77) id m0t4dhM-000JfVC; Mon, 16 Oct 95 01:46 BST
Sender: and1000@thor.cam.ac.uk (Austin Donnelly)
Date: Mon, 16 Oct 1995 01:46:36 +0100 (BST)
From: Austin Donnelly <and1000@cam.ac.uk>
X-Sender: and1000@hammer.thor.cam.ac.uk
To: debian-bugs@pixar.com
Subject: fvwm creates /tmp/fvwmrcXXXX
Message-Id: <Pine.SOL.3.91.951016014228.10069C-100000@hammer.thor.cam.ac.uk>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Package: fvwm
Version: 1.24r-7

Fvwm creates /tmnp/fvwmrcXXXX while parsing the .fvwmrc file - but
it's owned by the person who's running fvwm, meaning that no two
people can run fvwm simultaneously.

Austin

Acknowledgement sent to Austin Donnelly <and1000@cam.ac.uk>:
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#1684; Package fvwm. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov