"stat open" lseek(fd = -1)

David Disseldorp ddiss at samba.org
Wed Feb 27 15:52:28 UTC 2019

Hi Samba archaeologists,

Explicit "stat open" tracking was removed way back in 2002 with
b9e91d2a8e41a43d7ebb7d7eed807a7d8de9b329. This change instead added a
"fd == -1" check to the vfs_default lseek handler, which has remained to
this day.
Does anybody know whether this lseek(fd = -1) condition can still /
could ever be triggered? If so, how?

Cheers, David

More information about the samba-technical mailing list