s3: printing: Use offset tracking in printing_pread_data() to remove the seek in...
authorJeremy Allison <jra@samba.org>
Tue, 1 May 2018 18:19:49 +0000 (11:19 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 4 May 2018 20:34:24 +0000 (22:34 +0200)
commit9bf5d0da9516635eef5af246a3c7b5f3b0648f74
tree839f1be45d288c35980d0a8342c0e539f19005b7
parenta87328edee55c4e71b468da8642689bb24b6bb1d
s3: printing: Use offset tracking in printing_pread_data() to remove the seek in handle_ne_file().

Uses the fact that: lseek(fd, 0, SEEK_CUR) is merely getting the current file position,
which we have already tracked in in_pos.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/printing/nt_printing.c