diff options
author | Memphiz <memphis@machzwo.de> | 2011-10-01 20:55:01 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2011-10-01 20:56:19 +0200 |
commit | a999aba73f838f117c115b248af31b7058e56753 (patch) | |
tree | b44e1776a7fe0fca48c21536bae68a92f49a6d7f /tools | |
parent | e6ad66c8b0b6af41af91beda060ac09de43278b8 (diff) |
[fix] - fix empty st_mode field in stat in libafpclient - at least it isn't zero anymore but we still don't get symlink flag set...
Diffstat (limited to 'tools')
-rw-r--r-- | tools/darwin/depends/afpfs-ng/11-fix-stat.patch | 11 | ||||
-rw-r--r-- | tools/darwin/depends/afpfs-ng/Makefile | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/darwin/depends/afpfs-ng/11-fix-stat.patch b/tools/darwin/depends/afpfs-ng/11-fix-stat.patch new file mode 100644 index 0000000000..09e9a35231 --- /dev/null +++ b/tools/darwin/depends/afpfs-ng/11-fix-stat.patch @@ -0,0 +1,11 @@ +--- afpfs-ng-0.8.1/lib/lowlevel.c 2011-10-01 20:36:55.000000000 +0200 ++++ afpfs-ng-0.8.1/lib/lowlevel.c 2011-10-01 20:46:00.000000000 +0200 +@@ -579,7 +579,7 @@ + return -EIO; + } + +- if (volume->server->using_version->av_number>=30) ++ if (volume->server->using_version->av_number>=30 && fp.unixprivs.permissions != 0) + stbuf->st_mode |= fp.unixprivs.permissions; + else + set_nonunix_perms(&stbuf->st_mode,&fp); diff --git a/tools/darwin/depends/afpfs-ng/Makefile b/tools/darwin/depends/afpfs-ng/Makefile index 9d93c1c42f..2ae566ed3d 100644 --- a/tools/darwin/depends/afpfs-ng/Makefile +++ b/tools/darwin/depends/afpfs-ng/Makefile @@ -32,6 +32,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE) cd $(SOURCE); patch -p1 <../07-boxee4.patch cd $(SOURCE); patch -p1 <../08-boxee5.patch cd $(SOURCE); patch -p1 <../10-fix-errno.patch + cd $(SOURCE); patch -p1 <../11-fix-stat.patch cd $(SOURCE); autoreconf -vif cd $(SOURCE); $(CONFIGURE) |