Skip Menu |

This queue is for tickets about the Fuse CPAN distribution.

Report information
The Basics
Id: 30790
Status: resolved
Priority: 0/
Queue: Fuse

People
Owner: demon [...] now.ai
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.09
Fixed in: 0.15



Subject: XATTR_CREATE and XATTR_REPLACE wrong for Mac
Fuse.pm hardcodes XATTR_CREATE and XATTR_REPLACE to the Linux values, but they have different values on Mac. The following is quoted from /usr/include/sys/xattr.h: /* Options for pathname based xattr calls */ #define XATTR_NOFOLLOW 0x0001 /* Don't follow symbolic links */ /* Options for setxattr calls */ #define XATTR_CREATE 0x0002 /* set the value, fail if attr already exists */ #define XATTR_REPLACE 0x0004 /* set the value, fail if attr does not exist */ /* Set this to bypass authorization checking (eg. if doing auth-related work) */ #define XATTR_NOSECURITY 0x0008 #define XATTR_MAXNAMELEN 127
Subject: Re: [rt.cpan.org #30790] XATTR_CREATE and XATTR_REPLACE wrong forMac
Date: Sat, 17 Nov 2007 12:58:53 +0100
To: Chris Dolan via RT <bug-Fuse [...] rt.cpan.org>
From: Dobrica Pavlinusic <dpavlin [...] rot13.org>
On Fri, Nov 16, 2007 at 10:57:07PM -0500, Chris Dolan via RT wrote: Show quoted text
> Fuse.pm hardcodes XATTR_CREATE and XATTR_REPLACE to the Linux values, > but they have different values on Mac. The following is quoted from > /usr/include/sys/xattr.h: > > /* Options for pathname based xattr calls */ > #define XATTR_NOFOLLOW 0x0001 /* Don't follow symbolic links */ > > /* Options for setxattr calls */ > #define XATTR_CREATE 0x0002 /* set the value, fail if attr > already exists */ > #define XATTR_REPLACE 0x0004 /* set the value, fail if attr does > not exist */ > > /* Set this to bypass authorization checking (eg. if doing auth-related > work) */ > #define XATTR_NOSECURITY 0x0008 > > #define XATTR_MAXNAMELEN 127
I would prefer to move those constants in C, so we can use system includes as opposed to checking $^O in perl. Does that seem sane to you? I will have to dust off my FreeBSD and Solaris images to check situation there... I don't have acess to OSX box, so you input is very appriciated. -- Dobrica Pavlinusic 2share!2flame dpavlin@rot13.org Unix addict. Internet consultant. http://www.rot13.org/~dpavlin
Subject: Re: [rt.cpan.org #30790] XATTR_CREATE and XATTR_REPLACE wrong forMac
Date: Sat, 17 Nov 2007 08:48:01 -0600
To: bug-Fuse [...] rt.cpan.org
From: Chris Dolan <chris [...] chrisdolan.net>
On Nov 17, 2007, at 5:59 AM, dpavlin@rot13.org via RT wrote: Show quoted text
> I would prefer to move those constants in C, so we can use system > includes as opposed to checking $^O in perl. > > Does that seem sane to you? > > I will have to dust off my FreeBSD and Solaris images to check > situation > there... I don't have acess to OSX box, so you input is very > appriciated.
Yep, that makes sense. I'm happy to test a pre-release. OSX generally follows FreeBSD, but there are always differences... Chris
Best solution would be to use h2ph because any other solution would really limit as to hard-coded list of attributes hardcoded in Fuse.xs or Fuse.pm. However, it seems there is no good way to generate it other than calling h2ph directly: http://www.perlmonks.org/?node_id=658610 Would that work on Mac? p.s. I finally have iMac G5, but I really don't have any idea how to compile fuse on mac. Pointers welcomed :-)
Subject: Re: [rt.cpan.org #30790] XATTR_CREATE and XATTR_REPLACE wrong for Mac
Date: Mon, 17 May 2010 18:12:52 -0500
To: bug-Fuse [...] rt.cpan.org
From: Chris Dolan <chris [...] chrisdolan.net>
Pre-compiled: http://code.google.com/p/macfuse/ It should work on PowerPC, but I have not tried (my G5 iMac died...) Chris On May 17, 2010, at 12:22 PM, Dobrica Pavlinusic via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=30790 > > > Best solution would be to use h2ph because any other solution would > really limit as to hard-coded list of attributes hardcoded in > Fuse.xs or > Fuse.pm. > > However, it seems there is no good way to generate it other than > calling > h2ph directly: > > http://www.perlmonks.org/?node_id=658610 > > Would that work on Mac? > > p.s. I finally have iMac G5, but I really don't have any idea how to > compile fuse on mac. Pointers welcomed :-) > >
This has been fixed for OS X as of 0.12. It uses the <sys/xattr.h> definitions for XATTR_CREATE and XATTR_REPLACE for Linux and OS X, so they're defined and correct for those platforms; however, for Free/NetBSD, they were both undefined until after 0.14. This is addressed in current git master, and will be permanently addressed as of the 0.15 release.
This is resolved fully as of the 0.15 release. If you're still seeing an issue, please re-open this ticket and let us know. Thanks! -- Derrik Pates demon@now.ai