summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-06-23 20:27:05 +0200
committerGünther Deschner <gd@samba.org>2009-06-24 00:36:48 +0200
commit05459cf833aebc8402ef9b58580aa05e0b5f653f (patch)
tree0d60da33f1f365489a2feb8f748ee2c5c44ad3ed
parent118ac25784dba37e135ed427ab347107bf8fc8e9 (diff)
downloadsamba-05459cf833aebc8402ef9b58580aa05e0b5f653f.tar.gz
samba-05459cf833aebc8402ef9b58580aa05e0b5f653f.tar.xz
samba-05459cf833aebc8402ef9b58580aa05e0b5f653f.zip
s3-printing: eliminate another non sec_initial_uid using security check.
Guenther
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index f496ae5edd3..3e206becf4a 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -2532,7 +2532,7 @@ uint32 del_a_printer(const char *sharename)
close_all_print_db();
- if (geteuid() == 0) {
+ if (geteuid() == sec_initial_uid()) {
if (asprintf(&printdb_path, "%s%s.tdb",
cache_path("printing/"),
sharename) < 0) {