summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-06 12:19:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:14 -0500
commit2941d46b82bc9aa3165190aefe5d429f3b39f5b5 (patch)
tree9394a4c37feff13d776543672daf82bdbfc3a56b
parent43141d64ca7a0477cac2d5316ac53ec162a54e7b (diff)
downloadsamba-2941d46b82bc9aa3165190aefe5d429f3b39f5b5.tar.gz
samba-2941d46b82bc9aa3165190aefe5d429f3b39f5b5.tar.bz2
samba-2941d46b82bc9aa3165190aefe5d429f3b39f5b5.zip
r19127: Fix bug 4152
(This used to be commit 70038e8f7b3042c2732e7f8267cab0499972a819)
-rw-r--r--source3/utils/pdbedit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index 013eab18ce..ceb346d987 100644
--- 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();