Ticket #51 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

Do not change current user when SWAT is running as apache cgi

Reported by: ydario Owned by: psmedley
Priority: minor Milestone:
Component: Server Version:
Keywords: swat Cc:
Blocking: Blocked By:

Description

it is not necessary to change current user when swat runs as cgi application with apache 2.x

Index: cgi.c
===================================================================
--- cgi.c	(revision 106)
+++ cgi.c	(working copy)
@@ -309,6 +309,7 @@
 		exit(0);
 	}
 
+#ifndef __EMX__
 	pwd = getpwnam_alloc(NULL, user);
 	if (!pwd) {
 		printf("%sCannot find user %s<br>%s\n", head, user, tail);
@@ -323,6 +324,7 @@
 		exit(0);
 	}
 	TALLOC_FREE(pwd);
+#endif // __EMX__
 }
 

Also samba-3.0/swat/* must be included in distribution.

Attachments

manServer_107.pl (61.6 kB) - added by ydario 10 months ago.
perl script for man page conversion to html

Change History

Changed 10 months ago by ydario

perl script for man page conversion to html

Changed 10 months ago by ydario

Also html manpages should be shipped into help/manpage/ to allow browsing documentation using firefox.

Changed 10 months ago by psmedley

  • status changed from new to closed
  • resolution set to fixed

Checkin 119 included this fix

Note: See TracTickets for help on using tickets.