summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/tests/vlp.c3
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;
}