mirror of
https://github.com/samba-team/samba.git
synced 2025-01-07 17:18:11 +03:00
smbd: Use srv_put_dos_date2_ts() in reply_printqueue()
srv_put_dos_date2_ts() uses convert_timespec_to_time_t() on the passed timespec, which for ts_nsec==0 returns just tv_sec. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
d5a0d6f7e9
commit
abf323d03e
@ -6022,7 +6022,10 @@ void reply_printqueue(struct smb_request *req)
|
||||
for (i = first; i < num_to_get; i++) {
|
||||
char blob[28];
|
||||
char *p = blob;
|
||||
time_t qtime = spoolss_Time_to_time_t(&info[i].info2.submitted);
|
||||
struct timespec qtime = {
|
||||
.tv_sec = spoolss_Time_to_time_t(
|
||||
&info[i].info2.submitted),
|
||||
};
|
||||
int qstatus;
|
||||
size_t len = 0;
|
||||
uint16_t qrapjobid = pjobid_to_rap(sharename,
|
||||
@ -6034,7 +6037,7 @@ void reply_printqueue(struct smb_request *req)
|
||||
qstatus = 3;
|
||||
}
|
||||
|
||||
srv_put_dos_date2(p, 0, qtime);
|
||||
srv_put_dos_date2_ts(p, 0, qtime);
|
||||
SCVAL(p, 4, qstatus);
|
||||
SSVAL(p, 5, qrapjobid);
|
||||
SIVAL(p, 7, info[i].info2.size);
|
||||
|
Loading…
Reference in New Issue
Block a user