s3: smbd: Remove the handling of offset == -1 in real_write_file().
authorJeremy Allison <jra@samba.org>
Wed, 2 May 2018 23:39:16 +0000 (16:39 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 4 May 2018 20:34:25 +0000 (22:34 +0200)
commit394ac908c19bd54e6869865ddff44e2382aedb48
treef3b91adcb6632863fdd00215abcdd45de3e30c26
parent23f4b3f0ed1b5883b50b390292e06587c2a6e27b
s3: smbd: Remove the handling of offset == -1 in real_write_file().

All SMB1/2/3 offsets over the wire are absolute.

The only caller with offset == -1 is on a print-spool file
in reply_printwrite(), and write_file() redirects this
to print_spool_write(), which correctly handles the -1.

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