Update of /cvsroot/tmda/tmda/contrib/cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv19110

Modified Files:
        tmda-cgi.c 
Log Message:
Added code to pass along the environment variable TMDARC to the CGI.  See the
section entitled "Moving your configuration files" in htdocs/tmda-cgi.ht for
more on this.


Index: tmda-cgi.c
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/tmda-cgi.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tmda-cgi.c  25 Nov 2002 17:04:45 -0000      1.1
+++ tmda-cgi.c  28 Nov 2002 17:11:49 -0000      1.2
@@ -24,6 +24,10 @@
 
 int main(int argc, char *argv[])
 {
+#ifdef TMDARC
+  setenv("TMDARC", TMDARC, 1);
+#endif
+
   chdir(INSTALL);
   execl(PYTHON, PYTHON, "tmda-cgi.py", 0);
 

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs

Reply via email to