samba-technical@lists.samba.org
[Top] [All Lists]

Re: libsmbclient -> smbc_setxattr corrupts context.

Subject: Re: libsmbclient -> smbc_setxattr corrupts context.
From:
Date: Mon, 07 May 2007 15:40:59 -0400
Henrik Zagerholm <henke@xxxxxx> 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

<Prev in Thread] Current Thread [Next in Thread>