summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-07 19:04:14 +0000
committerJeremy Allison <jra@samba.org>1998-05-07 19:04:14 +0000
commit1fd8d12ca414066acec71b33eb8a13e16c2acd3a (patch)
treea178c1124afa017e51240063f6b9ef0cc06bc68a /source/printing
parent57b01ad4ffb14ebd600d4e66602b54ed987f6106 (diff)
downloadsamba-1fd8d12ca414066acec71b33eb8a13e16c2acd3a.tar.gz
samba-1fd8d12ca414066acec71b33eb8a13e16c2acd3a.tar.xz
samba-1fd8d12ca414066acec71b33eb8a13e16c2acd3a.zip
This should (hopefully :-) be the final fix for the %U %G substitution
problem.... smbpass.c: Removed Luke's dire warning - as some of the functions in here *need* to be called externally :-). Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/printing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c
index bbc0ff6144b..c7db5744e26 100644
--- a/source/printing/printing.c
+++ b/source/printing/printing.c
@@ -103,7 +103,7 @@ static char *build_print_command(int cnum, char *command, char *syscmd, char *fi
string_sub(syscmd, "%p", tstr);
- standard_sub(cnum,syscmd,UID_FIELD_INVALID);
+ standard_sub(cnum,syscmd);
return (syscmd);
}
@@ -1056,7 +1056,7 @@ int get_printqueue(int snum,int cnum,print_queue_struct **queue,
pstrcpy(syscmd,lpq_command);
string_sub(syscmd,"%p",printername);
- standard_sub(cnum,syscmd,UID_FIELD_INVALID);
+ standard_sub(cnum,syscmd);
sprintf(outfile,"%s/lpq.%08x",tmpdir(),str_checksum(syscmd));
@@ -1147,7 +1147,7 @@ void del_printqueue(int cnum,int snum,int jobid)
pstrcpy(syscmd,lprm_command);
string_sub(syscmd,"%p",printername);
string_sub(syscmd,"%j",jobstr);
- standard_sub(cnum,syscmd,UID_FIELD_INVALID);
+ standard_sub(cnum,syscmd);
ret = smbrun(syscmd,NULL,False);
DEBUG(3,("Running the command `%s' gave %d\n",syscmd,ret));
@@ -1185,7 +1185,7 @@ void status_printjob(int cnum,int snum,int jobid,int status)
pstrcpy(syscmd,lpstatus_command);
string_sub(syscmd,"%p",printername);
string_sub(syscmd,"%j",jobstr);
- standard_sub(cnum,syscmd,UID_FIELD_INVALID);
+ standard_sub(cnum,syscmd);
ret = smbrun(syscmd,NULL,False);
DEBUG(3,("Running the command `%s' gave %d\n",syscmd,ret));