Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#51 closed defect (fixed)

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

Reported by: Yuri Dario Owned by: Paul Smedley
Priority: minor Milestone: Samba Server for eCS (OS/2) 1.0.1
Component: Samba Server Version: 3.0.28
Keywords: swat Cc:

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 (1)

manServer_107.pl (61.6 KB) - added by Yuri Dario 16 years ago.
perl script for man page conversion to html

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by Yuri Dario

Attachment: manServer_107.pl added

perl script for man page conversion to html

comment:1 Changed 16 years ago by Yuri Dario

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

comment:2 Changed 16 years ago by Paul Smedley

Resolution: fixed
Status: newclosed

Checkin 119 included this fix

comment:3 Changed 15 years ago by Herwig Bauernfeind

Milestone: Samba Server for eCS (OS/2) 1.0.1

comment:4 Changed 15 years ago by Herwig Bauernfeind

Version: 3.0.28
Note: See TracTickets for help on using tickets.