summaryrefslogtreecommitdiff
path: root/source3/printing/printing.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-02-02 14:04:46 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-02-03 13:26:13 +1300
commitd85bab275aa3794cefd838bbf1516ea63ed668fc (patch)
treeb074ed335d9b3c93ad6e64d50b30b72ca6efe1cd /source3/printing/printing.c
parentcaa1db7358a8f20b76e6c4706996c54094b8874a (diff)
downloadsamba-d85bab275aa3794cefd838bbf1516ea63ed668fc.tar.gz
loadparm: rename lp[cfg]_pathname to lp[cfg]_path for consistency with docs
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source3/printing/printing.c')
-rw-r--r--source3/printing/printing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index ea93f74b190..2f23607980a 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2656,7 +2656,7 @@ static WERROR print_job_checks(const struct auth_session_info *server_info,
/* see if we have sufficient disk space */
if (lp_minprintspace(snum)) {
minspace = lp_minprintspace(snum);
- ret = sys_fsusage(lp_pathname(talloc_tos(), snum), &dspace, &dsize);
+ ret = sys_fsusage(lp_path(talloc_tos(), snum), &dspace, &dsize);
if (ret == 0 && dspace < 2*minspace) {
DEBUG(3, ("print_job_checks: "
"disk space check failed.\n"));
@@ -2702,7 +2702,7 @@ static WERROR print_job_spool_file(int snum, uint32_t jobid,
* Verify that the file name is ok, within path, and it is
* already already there */
if (output_file) {
- path = lp_pathname(talloc_tos(), snum);
+ path = lp_path(talloc_tos(), snum);
len = strlen(path);
if (strncmp(output_file, path, len) == 0 &&
(output_file[len - 1] == '/' || output_file[len] == '/')) {
@@ -2731,7 +2731,7 @@ static WERROR print_job_spool_file(int snum, uint32_t jobid,
}
slprintf(pjob->filename, sizeof(pjob->filename)-1,
- "%s/%sXXXXXX", lp_pathname(talloc_tos(), snum),
+ "%s/%sXXXXXX", lp_path(talloc_tos(), snum),
PRINT_SPOOL_PREFIX);
mask = umask(S_IRWXO | S_IRWXG);
pjob->fd = mkstemp(pjob->filename);
@@ -2778,7 +2778,7 @@ WERROR print_job_start(const struct auth_session_info *server_info,
return WERR_INTERNAL_DB_CORRUPTION;
}
- path = lp_pathname(talloc_tos(), snum);
+ path = lp_path(talloc_tos(), snum);
werr = print_job_checks(server_info, msg_ctx, snum, &njobs);
if (!W_ERROR_IS_OK(werr)) {