git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43141d6
)
r19127: Fix bug 4152
author
Volker Lendecke
<vlendec@samba.org>
Fri, 6 Oct 2006 12:19:46 +0000
(12:19 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:15:14 +0000
(12:15 -0500)
(This used to be commit
70038e8f7b3042c2732e7f8267cab0499972a819
)
source3/utils/pdbedit.c
patch
|
blob
|
history
diff --git
a/source3/utils/pdbedit.c
b/source3/utils/pdbedit.c
index 013eab18ce502c22128b82689eefa49de42c510a..ceb346d98744bcecdf1f7e8b694048441dd11c1b 100644
(file)
--- a/
source3/utils/pdbedit.c
+++ b/
source3/utils/pdbedit.c
@@
-797,6
+797,12
@@
int main (int argc, char **argv)
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();