spike dd810d
--- src/native/unix/native/jsvc-unix.c	2010-10-22 02:39:31.758471743 +0200
spike dd810d
+++ src/native/unix/native/jsvc-unix.c	2010-10-22 02:41:27.200469664 +0200
spike dd810d
@@ -824,6 +824,16 @@
spike dd810d
         char *tmp = NULL;
spike dd810d
         char *p1  = NULL;
spike dd810d
         char *p2  = NULL;
spike dd810d
+	
Stanislav Ochotnicky ca084f
+        /* We don't want to use a form of exec() that searches the
Stanislav Ochotnicky ca084f
+           PATH, so require that argv[0] be either an absolute or
Stanislav Ochotnicky ca084f
+           relative path.  Error out if this isn't the case.  */
Stanislav Ochotnicky ca084f
+        tmp=strchr(oldpath,'/');
Stanislav Ochotnicky ca084f
+        if (tmp==NULL) {
Stanislav Ochotnicky ca084f
+          log_error("JSVC re-exec requires execution with an absolute or relative path");
Stanislav Ochotnicky ca084f
+          return(1);
Stanislav Ochotnicky ca084f
+        }
Stanislav Ochotnicky ca084f
+
spike dd810d
 
Stanislav Ochotnicky ca084f
         /*
Stanislav Ochotnicky ca084f
          * There is no need to change LD_LIBRARY_PATH