head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.22 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.20 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.18 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.16 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.14 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.12 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.10 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.8 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.6 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.4 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.2 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.1.1.1.0.2 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2007.11.03.13.04.43; author adam; state dead; branches; next 1.1; 1.1 date 2007.07.09.19.03.22; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.07.09.19.03.22; author agc; state Exp; branches; next ; desc @@ 1.2 log @Changes 0.4.3: - UTF8 internationalization of filenames, volumes and servers - proper uid/gid mapping to enable environments with a common or different user directory - DHX2 UAM from Derrik Pates - fixes to deal with the Apple Airport Extreme quirks - fixes to deal with netatalk quirks - improved status output for debugging - various small bug fixes @ text @$NetBSD: patch-ae,v 1.1 2007/07/09 19:03:22 agc Exp $ --- fuse_int.c 2007/07/09 18:28:21 1.1 +++ fuse_int.c 2007/07/09 18:35:16 @@@@ -21,7 +21,11 @@@@ #include #include #include +#ifdef __linux__ #include +#else +#include +#endif #include #include @@@@ -270,8 +274,13 @@@@ fp.unixprivs.uid,&stbuf->st_uid, fp.unixprivs.gid,&stbuf->st_gid)) return -EIO; +#ifdef __linux__ stbuf->st_ctim.tv_sec=fp.creation_date; stbuf->st_mtim.tv_sec=fp.modification_date; +#else + stbuf->st_ctime=fp.creation_date; + stbuf->st_mtime=fp.modification_date; +#endif if (resource==AFP_RESOURCE_TYPE_PARENT2) { stbuf->st_mode |= S_IFDIR; @@@@ -890,7 +899,10 @@@@ } } - if ((fi->flags & O_LARGEFILE) && + if ( +#ifdef __linux__ + (fi->flags & O_LARGEFILE) && +#endif (volume->server->using_version->av_number<30)) { switch(get_directory_entry(volume,fp->basename,dirid, kFPParentDirIDBit|kFPNodeIDBit| @@@@ -2039,7 +2051,7 @@@@ { global_volume=vol; -#if FUSE_VERSION < 26 +#if FUSE_USE_VERSION < 26 return fuse_main(fuseargc, fuseargv, &afp_oper); #else return fuse_main(fuseargc, fuseargv, &afp_oper,(void *) vol); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of afpfs-ng, version 0.4.1 into the Packages Collection. afpfs-ng is an Apple Filing Protocol client that will allow a Linux system to see files exported from a Mac OS system with AFP over TCP. With thanks to Jared for the nudge. @ text @@