libsmbclient -> smbc_setxattr corrupts context.
derrell at samba.org
derrell at samba.org
Mon May 7 19:40:59 GMT 2007
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.
Thanks,
Derrell
More information about the samba-technical
mailing list