diff options
author | David Disseldorp <ddiss@samba.org> | 2012-06-21 15:49:55 +0200 |
---|---|---|
committer | David Disseldorp <ddiss@samba.org> | 2012-06-26 16:10:39 +0200 |
commit | e01ef8a9bd36bda5b9a383585b74429a333f8567 (patch) | |
tree | ccd53689aabdac04b9d419e45434654ad611d766 | |
parent | 1c2f1543230b2a016b026e1f3a03a52f0d9d76d7 (diff) | |
download | samba-e01ef8a9bd36bda5b9a383585b74429a333f8567.tar.gz samba-e01ef8a9bd36bda5b9a383585b74429a333f8567.tar.bz2 samba-e01ef8a9bd36bda5b9a383585b74429a333f8567.zip |
s3-printing: use euid for vlp job tracking
vlp can be called by print_run_command as root with euids set
appropriately, vlp should use this to track the job owner.
-rw-r--r-- | source3/printing/tests/vlp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/printing/tests/vlp.c b/source3/printing/tests/vlp.c index 66860e5ada..648fca106d 100644 --- a/source3/printing/tests/vlp.c +++ b/source3/printing/tests/vlp.c @@ -236,7 +236,8 @@ static int print_command(int argc, char **argv) slprintf(job.jobname, sizeof(job.jobname) - 1, "%s", argv[2]); - if (!(pw = getpwuid(getuid()))) { + if (!(pw = getpwuid(geteuid()))) { + printf("getpwuid failed\n"); return 1; } |