Visible symlinks under Windows

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Feb 21 10:59:11 GMT 2008


On Thu, Feb 21, 2008 at 11:37:07AM +0100, Corinna Vinschen wrote:
> > Mulling about this problem, I stumbled over the NtQueryFullAttributesFile
> > function, which is the NT function retrieving the NT equivalent of the
> > SMB_FILE_NETWORK_OPEN_INFORMATION block.  It's the maximum amount of 
> > information available to a Windows client without opening a file.  The
> > structure consists of
> > 
> >   birthtime
> >   atime
> >   mtime
> >   ctime
> >   allocation_size
> >   file_size
> >   dos_attributes
> > 
> > Is it possible to sneak in the information that the file or dir is
> > actually a symlink into the above structure?
> > 
> > Two members of this structure are not used by Win32 clients, ctime and
> > allocation_size, because the Win32 equivalent of the
> > NtQueryFullAttributesFile function, GetFileAttributesEx, does not expose
> > them.  But ctime is retrieved by Cygwin as... ctime.

Are you 100% sure that no Windows code ever looks at this?
You would change our calculation of allocation_size for
symlinks only? What do we return right now for them?
(haven't looked at our code)

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080221/67bd3c36/attachment.bin


More information about the samba-technical mailing list