[mw-devel] MW3 r1007 - trunk/src

arthur at sucs.org arthur at sucs.org
Tue Dec 18 12:31:02 GMT 2007


Author: arthur
Date: 2007-12-18 12:31:01 +0000 (Tue, 18 Dec 2007)
New Revision: 1007

Modified:
   trunk/src/main.c
Log:
remove this pointless and broken abomination


Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c	2007-12-18 12:21:37 UTC (rev 1006)
+++ trunk/src/main.c	2007-12-18 12:31:01 UTC (rev 1007)
@@ -142,22 +142,6 @@
 		return 1;
 	}
 
-	/* new more flexible, is mw group member */
-
-	pwe = getpwuid(getuid());
-	grp = getgrnam("mw");
-	if (grp != NULL && pwe != NULL) {
-		int found=0;
-		char **p = grp->gr_mem;
-		while (*p!=NULL) {
-			if (strcmp(*p,pwe->pw_name)==0) found++;
-			p++;
-		}
-		if (found) {
-			return 1;
-		}
-	}
-
 	return 0;
 }
 





More information about the mw-devel mailing list