1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3-printing: eliminate another non sec_initial_uid using security check.

Guenther
This commit is contained in:
Günther Deschner 2009-06-23 20:27:05 +02:00
parent 118ac25784
commit 05459cf833

View File

@ -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) {