Why 8+1 in SMB_QUERY_FILE_UNIX_BASIC?
Volker Lendecke
Volker.Lendecke at SerNet.DE
Thu Jun 8 07:57:30 GMT 2006
Hi, Jeremy!
Without
--- source/smbd/trans2.c
+++ source/smbd/trans2.c
@@ -3431,12 +3431,12 @@
SIVAL(pdata,0,sbuf.st_nlink); /* number of hard links */
SIVAL(pdata,4,0);
- pdata += 8+1;
+ pdata += 8;
data_size = PTR_DIFF(pdata,(*ppdata));
{
Samba4 will not accept our UNIX_BASIC infolevel. Why the +1?
Even without it valgrind does not complain.
I'm playing with this because I want easy and direct remote
testing of 'hide unreadable' and 'hide unwritable', and I
did not want to mess with security descriptors :-)
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/20060608/0417344e/attachment.bin
More information about the samba-technical
mailing list