From: Rick W. <rw...@us...> - 2007-11-17 08:36:02
|
Update of /cvsroot/vpopmail/vpopmail In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv22287 Modified Files: vdelivermail.c Log Message: use putenv instead of setenv in vdelivermail for portability Index: vdelivermail.c =================================================================== RCS file: /cvsroot/vpopmail/vpopmail/vdelivermail.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- vdelivermail.c 22 May 2007 03:59:00 -0000 1.18 +++ vdelivermail.c 17 Nov 2007 08:36:03 -0000 1.19 @@ -907,7 +907,7 @@ printf("Unable to fork: %d.", errno); vexit(EXIT_DEFER); case 0: - setenv("SHELL", "/bin/sh", 1); + putenv("SHELL", "/bin/sh", 1); args[0] = "/bin/sh"; args[1] = "-c"; args[2] = prog; args[3] = 0; sig_catch(SIGPIPE,SIG_DFL); execv(*args,args); |