diff options
author | Gerald Carter <jerry@samba.org> | 2002-10-21 20:28:11 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-10-21 20:28:11 +0000 |
commit | 534220da603ecc7c5982a9ff1657b46e2d0e69ea (patch) | |
tree | b9f53ef50bc5374620147ff8878484a5f7ffff05 /source3/smbd/fileio.c | |
parent | 5dbf435408cce525431dbe43bc379797293f5c99 (diff) | |
download | samba-534220da603ecc7c5982a9ff1657b46e2d0e69ea.tar.gz samba-534220da603ecc7c5982a9ff1657b46e2d0e69ea.tar.bz2 samba-534220da603ecc7c5982a9ff1657b46e2d0e69ea.zip |
merge from samba_3_0
removed the following parameters
* postscript
* printer driver
* printer driver location
* printer driver file
also removed the get_a_printer_driver_9x_compatible() function
(This used to be commit e7dd8cf903144393b1362719d75430a2ee7e5f27)
Diffstat (limited to 'source3/smbd/fileio.c')
-rw-r--r-- | source3/smbd/fileio.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index d5df9826df..6bae1df996 100644 --- a/source3/smbd/fileio.c +++ b/source3/smbd/fileio.c @@ -30,13 +30,9 @@ static BOOL setup_write_cache(files_struct *, SMB_OFF_T); static SMB_OFF_T seek_file(files_struct *fsp,SMB_OFF_T pos) { - SMB_OFF_T offset = 0; SMB_OFF_T seek_ret; - if (fsp->print_file && lp_postscript(fsp->conn->service)) - offset = 3; - - seek_ret = fsp->conn->vfs_ops.lseek(fsp,fsp->fd,pos+offset,SEEK_SET); + seek_ret = fsp->conn->vfs_ops.lseek(fsp,fsp->fd,pos,SEEK_SET); if(seek_ret == -1) { DEBUG(0,("seek_file: (%s) sys_lseek failed. Error was %s\n", @@ -45,10 +41,10 @@ static SMB_OFF_T seek_file(files_struct *fsp,SMB_OFF_T pos) return -1; } - fsp->pos = seek_ret - offset; + fsp->pos = seek_ret; DEBUG(10,("seek_file (%s): requested pos = %.0f, new pos = %.0f\n", - fsp->fsp_name, (double)(pos+offset), (double)fsp->pos )); + fsp->fsp_name, (double)pos, (double)fsp->pos )); return(fsp->pos); } |