diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-04 10:14:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-04 10:14:21 +0000 |
commit | 7bd738c30a09a211fd14a8544309efeec17c66f5 (patch) | |
tree | 30290bb990f82eb6cbda5a755bfd571a12c1d1eb /source/smbwrapper/smbw_stat.c | |
parent | 080fb61b69620e26e8122705383dc2bd0468a519 (diff) | |
download | samba-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.c | 10 |
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; } |