SMBFS mount's file cannot be made executable

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Dec 9 15:26:53 GMT 2024


On Dec  9 22:57, Takashi Yano wrote:
> On Mon, 9 Dec 2024 22:44:00 +0900
> Takashi Yano wrote:
> > On Mon, 9 Dec 2024 12:11:56 +0100
> > Corinna Vinschen wrote:
> > > init_reopen_attr() uses the "open by handle" functionality as in the
> > > Win32 API ReOpenFile().  It only does so if the filesystem supports it.
> > > Samba usually does, so it's not clear to me why pc.init_reopen_attr()
> > > fails for you.
> > 
> > I didn't mean pc.init_reopen_attr() failed. Just I was no idea
> > for what handle to be passed.
> > 
> > > > What handle should I pass to pc.init_reopen_attr()?
> > > 
> > > You could pass pc.handle().  Is pc.handle() in this scenario NULL,
> > > perhaps?
> > 
> > I have tried pc.handle() and suceeded. Thanks for advice!
> 
> No! pc.handle() sometimes seems to be NULL....

Can you please figure out in which scenario it's NULL?  Theoretically
the function shouldn't even be called in this case.


Corinna


More information about the Cygwin-patches mailing list