mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
Fix from Dave Collier Brown to log a debug at level zero on common misconfigure.
Jeremy. (This used to be commit 4a3d2a13d3b0acab69c27b5b6522575b949eb5e6)
This commit is contained in:
parent
8600979fad
commit
071a770ed4
@ -918,7 +918,19 @@ int print_job_start(struct current_user *user, int snum, char *jobname)
|
||||
goto next_jobnum;
|
||||
}
|
||||
pjob.fd = sys_open(pjob.filename,O_WRONLY|O_CREAT|O_EXCL,0600);
|
||||
if (pjob.fd == -1) goto fail;
|
||||
|
||||
if (pjob.fd == -1) {
|
||||
if (errno == EACCES) {
|
||||
/* Common setup error, force a report. */
|
||||
DEBUG(0, ("print_job_start: insufficient permissions \
|
||||
to open spool file %s.\n", pjob.filename));
|
||||
} else {
|
||||
/* Normal case, report at level 3 and above. */
|
||||
DEBUG(3, ("print_job_start: can't open spool file %s,\n", pjob.filename));
|
||||
DEBUGADD(3, ("errno = %d (%s).\n", errno, strerror(errno)));
|
||||
}
|
||||
goto fail;
|
||||
}
|
||||
|
||||
print_job_store(jobid, &pjob);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user