aboutsummaryrefslogtreecommitdiffstats
path: root/community/afpfs-ng/09-afpfs-ng-0.8.1-fix-stat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/afpfs-ng/09-afpfs-ng-0.8.1-fix-stat.patch')
-rw-r--r--community/afpfs-ng/09-afpfs-ng-0.8.1-fix-stat.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/afpfs-ng/09-afpfs-ng-0.8.1-fix-stat.patch b/community/afpfs-ng/09-afpfs-ng-0.8.1-fix-stat.patch
new file mode 100644
index 0000000000..09e9a35231
--- /dev/null
+++ b/community/afpfs-ng/09-afpfs-ng-0.8.1-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);