From 32584347e93e5ff219cce4dd8e13bf8b2868072c Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Thu, 21 Jun 2012 15:49:55 +0200 Subject: [PATCH] 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. --- source3/printing/tests/vlp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/printing/tests/vlp.c b/source3/printing/tests/vlp.c index b22050632ea..f02e0c55769 100644 --- a/source3/printing/tests/vlp.c +++ b/source3/printing/tests/vlp.c @@ -237,7 +237,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; } -- 2.11.4.GIT