From 05459cf833aebc8402ef9b58580aa05e0b5f653f Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 23 Jun 2009 20:27:05 +0200 Subject: s3-printing: eliminate another non sec_initial_uid using security check. Guenther --- source3/printing/nt_printing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit