Date: Tue, 28 Feb 2006 21:48:56 -0600 (CST) From: Paul Schmehl <pauls@utdallas.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/93967: converters/mpack, correct hardcoded path problem in source code Message-ID: <20060301034856.D4FDB44482F@utd59514.utdallas.edu> Resent-Message-ID: <200603010350.k213oC70016908@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 93967 >Category: ports >Synopsis: converters/mpack, correct hardcoded path problem in source code >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Mar 01 03:50:11 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Paul Schmehl >Release: FreeBSD 5.4-SECURITY i386 >Organization: University of Texas at Dallas >Environment: System: FreeBSD hostname.utdallas.edu 5.4-SECURITY FreeBSD 5.4-SECURITY #0: Wed Jul 20 08:57:11 UTC 2005 root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: several files had hardcoded paths to TMPDIR of /usr/tmp, which does not exist. They were edited to change TMPDIR to /tmp. The files included man files as well as source code files. >How-To-Repeat: sending a file through mpack fails because the TMPDIR does not exist >Fix: --- patch-README.unix begins here --- --- README.unix.orig Tue Feb 28 21:37:10 2006 +++ README.unix Tue Feb 28 21:37:28 2006 @@ -188,7 +188,7 @@ TMPDIR Root of directory to store partial messages awaiting - reassembly. Default is "/usr/tmp". Partial messages + reassembly. Default is "/tmp". Partial messages are stored in subdirectories of $TMPDIR/m-prts-$USER/ --- patch-README.unix ends here --- --- patch-mkreadme.pl begins here --- --- mkreadme.pl.orig Tue Feb 28 21:37:42 2006 +++ mkreadme.pl Tue Feb 28 21:38:32 2006 @@ -413,7 +413,7 @@ =unix TMPDIR Root of directory to store partial messages awaiting - reassembly. Default is "/usr/tmp". Partial messages + reassembly. Default is "/tmp". Partial messages are stored in subdirectories of $TMPDIR/m-prts-$USER/ =pc os2 --- patch-mkreadme.pl ends here --- --- patch-unixos.c begins here --- --- unixos.c.orig Tue Feb 28 21:35:40 2006 +++ unixos.c Tue Feb 28 21:36:04 2006 @@ -90,7 +90,7 @@ strcpy(buf, getenv("TMPDIR")); } else { - strcpy(buf, "/usr/tmp"); + strcpy(buf, "/tmp"); } strcat(buf, "/m-prts-"); p = getenv("USER"); --- patch-unixos.c ends here --- --- patch-unixpk.c begins here --- --- unixpk.c.orig Tue Feb 28 21:36:27 2006 +++ unixpk.c Tue Feb 28 21:36:44 2006 @@ -164,7 +164,7 @@ strcpy(fnamebuf, getenv("TMPDIR")); } else { - strcpy(fnamebuf, "/usr/tmp"); + strcpy(fnamebuf, "/tmp"); } strcat(fnamebuf, "/mpackXXXXXX"); mktemp(fnamebuf); --- patch-unixpk.c ends here --- --- patch-unixpk.man begins here --- --- unixpk.man.orig Tue Feb 28 21:38:44 2006 +++ unixpk.man Tue Feb 28 21:39:33 2006 @@ -136,7 +136,7 @@ .SH ENVIRONMENT .TP .B TMPDIR -Directory to store temporary files. Default is /usr/tmp. +Directory to store temporary files. Default is /tmp. .TP .B SPLITSIZE Default value of the -m switch. --- patch-unixpk.man ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060301034856.D4FDB44482F>