aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2011-12-04 21:23:20 +0100
committerMemphiz <memphis@machzwo.de>2011-12-04 21:24:08 +0100
commit0d5e54a8370c3b814ab26d779e73fc8fe70d1b3f (patch)
treebab99adca02107de832ddf9b1983514553a47bc4 /tools
parenta93a25a737ba6c4f708f0ed3377b5931d3790d1a (diff)
[fix] - fixed access of files with some stupid nfs servers (HaneWin) - fixes iso playback with that servers ...
Diffstat (limited to 'tools')
-rw-r--r--tools/darwin/depends/libnfs/001_fix_hanewin.patch12
-rw-r--r--tools/darwin/depends/libnfs/Makefile1
2 files changed, 13 insertions, 0 deletions
diff --git a/tools/darwin/depends/libnfs/001_fix_hanewin.patch b/tools/darwin/depends/libnfs/001_fix_hanewin.patch
new file mode 100644
index 0000000000..507fbe6988
--- /dev/null
+++ b/tools/darwin/depends/libnfs/001_fix_hanewin.patch
@@ -0,0 +1,12 @@
+--- lib/libnfs.c 2011-09-02 12:45:30.000000000 +0200
++++ lib/libnfs.c 2011-12-04 21:16:07.000000000 +0100
+@@ -666,6 +666,9 @@
+ if (res->GETATTR3res_u.resok.obj_attributes.type == NF3DIR) {
+ st.st_mode |= S_IFDIR ;
+ }
++ if (res->GETATTR3res_u.resok.obj_attributes.type == NF3REG) {
++ st.st_mode |= S_IFREG ;
++ }
+ st.st_nlink = res->GETATTR3res_u.resok.obj_attributes.nlink;
+ st.st_uid = res->GETATTR3res_u.resok.obj_attributes.uid;
+ st.st_gid = res->GETATTR3res_u.resok.obj_attributes.gid;
diff --git a/tools/darwin/depends/libnfs/Makefile b/tools/darwin/depends/libnfs/Makefile
index fef8ffec5f..fa93528f9c 100644
--- a/tools/darwin/depends/libnfs/Makefile
+++ b/tools/darwin/depends/libnfs/Makefile
@@ -27,6 +27,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
mkdir -p $(PREFIX)/include/rpc
install -c -m 644 $(RPC_HEADERS) $(PREFIX)/include/rpc/
+ cd $(SOURCE); patch -p0 < ../001_fix_hanewin.patch
cd $(SOURCE); ./bootstrap
cd $(SOURCE); $(CONFIGURE)