Skip to content
Browse files

[fix] - apply hanewin nfs server patch to libnfs for linux aswell

  • Loading branch information...
1 parent 3943772 commit 689408ece1bbd3b9956efaed62e77745a15daef1 @Memphiz Memphiz committed Dec 5, 2011
Showing with 13 additions and 0 deletions.
  1. +12 −0 lib/libnfs/001_fix_hanewin.patch
  2. +1 −0 lib/libnfs/Makefile
View
12 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;
View
1 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)

0 comments on commit 689408e

Please sign in to comment.
Something went wrong with that request. Please try again.