1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

add support for unlink() on printer shares in smbwrapper. unlink()

will remove the job from the pirnt queue.
This commit is contained in:
Andrew Tridgell
-
parent 080fb61b69
commit 7bd738c30a
4 changed files with 54 additions and 4 deletions

View File

@ -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;
}