| To: | ankur mattoo <coolpal53@xxxxxxxxx> |
|---|---|
| Subject: | Re: problem with setxattr |
| From: | Nathan Scott <nathans@xxxxxxx> |
| Date: | Tue, 23 Mar 2004 08:42:57 +1100 |
| Cc: | linux-xfs@xxxxxxxxxxx |
| In-reply-to: | <20040322181414.20891.qmail@xxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20040322181414.20891.qmail@xxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.3i |
On Mon, Mar 22, 2004 at 10:14:14AM -0800, ankur mattoo wrote:
> hi
> okay im trying to use setxattr and my simple prog is
> giving an invalid argument error on stracing!!
>
> main()
> {
> char *buff;
> size_t
> t=getxattr("ankur1","system.posix_acl_access",buff,0);
> buff=(char *)malloc(t);
> getxattr("ankur1","system.posix_acl_access",buff,0);
Last parameter on the line above needs to be 't', not 0.
> if(setxattr("ankur1","system.posix_acl_access",buff,t,0));
> perror("Error");
> }
>
cheers.
--
Nathan
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: xfsrestore: "is a directory: discarding ino", Nathan Scott |
|---|---|
| Next by Date: | External Journal and ACL Support, Mike Young |
| Previous by Thread: | problem with setxattr, ankur mattoo |
| Next by Thread: | [Bug 317] Kernel error messages using XFS, bugzilla-daemon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |