aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2011-12-05 17:48:50 +0100
committerMemphiz <memphis@machzwo.de>2011-12-05 17:48:50 +0100
commit689408ece1bbd3b9956efaed62e77745a15daef1 (patch)
treec6d588c7ab965029e958790054bdcc487b9ef9db
parent39437722b5b6ccbd25cf96901922086fdebfb7fe (diff)
[fix] - apply hanewin nfs server patch to libnfs for linux aswell
-rw-r--r--lib/libnfs/001_fix_hanewin.patch12
-rw-r--r--lib/libnfs/Makefile1
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/libnfs/001_fix_hanewin.patch b/lib/libnfs/001_fix_hanewin.patch
new file mode 100644
index 0000000000..507fbe6988
--- /dev/null
+++ b/lib/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/lib/libnfs/Makefile b/lib/libnfs/Makefile
index 266a3e21e1..9bd186cba9 100644
--- a/lib/libnfs/Makefile
+++ b/lib/libnfs/Makefile
@@ -35,6 +35,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
rm -rf $(SOURCE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
+ cd $(SOURCE); patch -p0 < ../001_fix_hanewin.patch
cd $(SOURCE);./bootstrap;$(CONFIGURE)
$(SO_NAME): $(SOURCE)