Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
[fix] - apply hanewin nfs server patch to libnfs for linux aswell
Browse files Browse the repository at this point in the history
  • Loading branch information
Memphiz committed Dec 5, 2011
1 parent 3943772 commit 689408e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/libnfs/001_fix_hanewin.patch
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions lib/libnfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 689408e

Please sign in to comment.