vfs: drop lseek stat-open checks
[gd/samba-autobuild/.git] / source3 / modules / vfs_default.c
index cb5537e096e6cbe07c2edfe07ec37b3fa5160585..1ed2c81066738917538c919b02fb88838feb9da6 100644 (file)
@@ -1025,10 +1025,7 @@ static off_t vfswrap_lseek(vfs_handle_struct *handle, files_struct *fsp, off_t o
 
        START_PROFILE(syscall_lseek);
 
-       /* Cope with 'stat' file opens. */
-       if (fsp->fh->fd != -1)
-               result = lseek(fsp->fh->fd, offset, whence);
-
+       result = lseek(fsp->fh->fd, offset, whence);
        /*
         * We want to maintain the fiction that we can seek
         * on a fifo for file system purposes. This allows