summaryrefslogtreecommitdiff
path: root/source/smbwrapper/smbw_stat.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 10:14:21 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 10:14:21 +0000
commit7bd738c30a09a211fd14a8544309efeec17c66f5 (patch)
tree30290bb990f82eb6cbda5a755bfd571a12c1d1eb /source/smbwrapper/smbw_stat.c
parent080fb61b69620e26e8122705383dc2bd0468a519 (diff)
downloadsamba-7bd738c30a09a211fd14a8544309efeec17c66f5.tar.gz
add support for unlink() on printer shares in smbwrapper. unlink()
will remove the job from the pirnt queue.
Diffstat (limited to 'source/smbwrapper/smbw_stat.c')
-rw-r--r--source/smbwrapper/smbw_stat.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/smbwrapper/smbw_stat.c b/source/smbwrapper/smbw_stat.c
index 69ca38a2aeb..d0b0e59b4f2 100644
--- a/source/smbwrapper/smbw_stat.c
+++ b/source/smbwrapper/smbw_stat.c
@@ -100,9 +100,13 @@ int smbw_stat_printjob(struct smbw_server *srv,char *path,
fstrcpy(printjob.name, path);
cli_print_queue(&srv->cli, smbw_printjob_stat);
- *size = printjob.size;
- *m_time = printjob.t;
- return 0;
+ if (size) {
+ *size = printjob.size;
+ }
+ if (m_time) {
+ *m_time = printjob.t;
+ }
+ return printjob.id;
}