summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-02-12 23:18:53 -0800
committerJeremy Allison <jra@samba.org>2010-02-12 23:18:53 -0800
commit9252df53d95d6ebe43314ffd87a9dda940b1ae10 (patch)
tree3a7034e7e9bfe5c686b4c93716c41854c9eb46f6 /source3/printing
parentd46d7717c7bdc1b404ff53d7831ed00d556a940f (diff)
downloadsamba-9252df53d95d6ebe43314ffd87a9dda940b1ae10.tar.gz
samba-9252df53d95d6ebe43314ffd87a9dda940b1ae10.tar.bz2
samba-9252df53d95d6ebe43314ffd87a9dda940b1ae10.zip
Use sec_initial_uid() in the places where being root doesn't matter,
and 0 in the places where it does. Jeremy
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/printing_db.c b/source3/printing/printing_db.c
index 746e768e48..762b418bb1 100644
--- a/source3/printing/printing_db.c
+++ b/source3/printing/printing_db.c
@@ -98,7 +98,7 @@ struct tdb_print_db *get_print_db_byname(const char *printername)
return NULL;
}
- if (geteuid() != 0) {
+ if (geteuid() != sec_initial_uid()) {
become_root();
done_become_root = True;
}