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:
parent
118ac25784
commit
05459cf833
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user