1a7e531c09
TCX is a system designed for the transparent decompression, execution and recompression of executables under Unix. It allows configuration options such as the type of compression system used (compress(1), gzip(1), your own local system etc), timeouts between recompressions, and emergency directories in case a decompression fails from shortage of disk space. The system is designed with a reasonable amount of robustness in mind, such as in the event of system crashes, or races on trying to uncompress, compress or execute something. This software is quite old (vintage 1993-94), and some things have moved on since then. In particular, untcx is setuid root. I have done a minor security audit, but anyone installing this software is invited to conduct one for themselves. =========================================================================== $NetBSD: MESSAGE,v 1.2 2002/09/12 19:37:07 wiz Exp $ WARNING - this package contains a setuid root executable called untcx, which was written in 1994, and contained calls to getwd(3), sprintf(3), strcpy(3) and strcat(3). I've done a minor audit of the code, and have fixed the above functions with calls to safer alternatives, but you may wish to delete this package from your own systems until you have carried out your own audit. ===========================================================================
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
$NetBSD: patch-ab,v 1.1.1.1 2003/06/23 13:55:24 agc Exp $
|
|
|
|
--- config.h 2003/05/19 16:02:37 1.1
|
|
+++ config.h 2003/05/19 16:03:51
|
|
@@ -23,7 +23,7 @@
|
|
/* Define one of the following where appropriate */
|
|
/************************************************************************/
|
|
|
|
-#define LINUX
|
|
+/* #define LINUX */
|
|
/* #define SUNOS */
|
|
/* #define IRIX */
|
|
/* #define ULTRIX */
|
|
@@ -45,14 +45,14 @@
|
|
/* since PATHUNTCX must run setuid to root. */
|
|
/************************************************************************/
|
|
|
|
-#define PATHUNTCX "/usr/local/bin/untcx"
|
|
+#define PATHUNTCX @PREFIX@ "/bin/untcx"
|
|
|
|
/************************************************************************/
|
|
/* PATHTCX is the pathname to the tcx executable. This does not have to*/
|
|
/* be installed setuid. */
|
|
/************************************************************************/
|
|
|
|
-#define PATHTCX "/usr/local/bin/tcx"
|
|
+#define PATHTCX @PREFIX@ "/bin/tcx"
|
|
|
|
/************************************************************************/
|
|
/* PATHPACKER is the pathname to the compression program you wish to use*/
|
|
@@ -143,6 +143,10 @@
|
|
#define PUSLEEP(x) (usleep(x))
|
|
#endif
|
|
|
|
+#ifndef PUSLEEP
|
|
+#define PUSLEEP(x) (usleep(x))
|
|
+#endif
|
|
+
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <sys/time.h>
|