svn commit: samba r19127 - in branches/SAMBA_3_0/source/utils: .

vlendec at samba.org vlendec at samba.org
Fri Oct 6 12:19:47 GMT 2006


Author: vlendec
Date: 2006-10-06 12:19:46 +0000 (Fri, 06 Oct 2006)
New Revision: 19127

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19127

Log:
Fix bug 4152
Modified:
   branches/SAMBA_3_0/source/utils/pdbedit.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/pdbedit.c
===================================================================
--- branches/SAMBA_3_0/source/utils/pdbedit.c	2006-10-06 12:18:59 UTC (rev 19126)
+++ branches/SAMBA_3_0/source/utils/pdbedit.c	2006-10-06 12:19:46 UTC (rev 19127)
@@ -797,6 +797,12 @@
 		POPT_TABLEEND
 	};
 	
+	/* we shouldn't have silly checks like this */
+	if (getuid() != 0) {
+		d_fprintf(stderr, "You must be root to use pdbedit\n");
+		return -1;
+	}
+	
 	bin = bout = bdef = NULL;
 
 	load_case_tables();



More information about the samba-cvs mailing list