libsmbclient -> smbc_setxattr corrupts context.

Henrik Zagerholm henke at mac.se
Tue May 8 08:43:02 GMT 2007


7 maj 2007 kl. 21:40 skrev derrell at samba.org:

> Henrik Zagerholm <henke at mac.se> writes:
>
>> Hello list,
>>
>> I just found what I believe is a bug in smc_setxattr but wanted  
>> to  air it
>> hear before submitting to bugzilla.
>>
>> I've notices that every-time I use smbc_setxattr my context gets   
>> messed up
>> and I must initialize a new one before I call the function  again.
>>
>> My pseudo code is as follow.
>>
>> SMB::init_context();
>> smbc_setxattr("smb://SERVER/SHARE/file1",ACL, ACL.size, 0) ->  
>> SUCCESS!
>>
>> smbc_setxattr("smb://SERVER/SHARE/file2",ACL, ACL.size, 0) -> FAILS!
>>
>>
>> SMB::init_context();
>> smbc_setxattr("smb://SERVER/SHARE/file1",ACL, ACL.size, 0) ->  
>> SUCCESS!
>>
>> SMB::init_context();
>> smbc_setxattr("smb://SERVER/SHARE/file2",ACL, ACL.size, 0) ->  
>> SUCCESS!
>
> Hi Henrik,
>
> Please post a bugzilla report on this and I'll look into it.  If  
> can attach a
> small C program (maybe based on examples/libsmbclient/testacl.c) that
> demonstrates the problem, I'd appreciate it.
>

Here ya go!
https://bugzilla.samba.org/show_bug.cgi?id=4599
Cheers, henrik

> Thanks,
>
> Derrell



More information about the samba-technical mailing list