nfs4-acl-tools/nfs4acl-0.3.3-editor-strlcpy.patch
Nahum Shalman a13f36f56b Build and package the GUI tool
Add patch to allow GUI tool to build correctly
Package GUI tool in a child package

Signed-off-by: Steve Dickson <steved@redhat.com>
2014-07-16 13:11:19 -04:00

13 lines
576 B
Diff

diff -urN nfs4-acl-tools-0.3.3/GUI/nfs4-acl-editor/nfs4acleditor.cpp nfs4-acl-tools-0.3.3-fixed/GUI/nfs4-acl-editor/nfs4acleditor.cpp
--- nfs4-acl-tools-0.3.3/GUI/nfs4-acl-editor/nfs4acleditor.cpp 2008-12-03 17:18:24.000000000 -0500
+++ nfs4-acl-tools-0.3.3-fixed/GUI/nfs4-acl-editor/nfs4acleditor.cpp 2010-09-08 13:23:49.000000000 -0400
@@ -569,7 +569,7 @@
if (i > strlen(ace->who)) {
dprintf("syncWho(): fromlen %d tolen %u\n", strlen(ace->who), i);
}
- strlcpy(ace->who, who, NFS4_MAX_PRINCIPALSIZE);
+ strncpy(ace->who, who, NFS4_MAX_PRINCIPALSIZE);
}
}