>From Malahal <mala...@gmail.com>:
Malahal has uploaded this change for review. (
https://review.gerrithub.io/404744
Change subject: WIP: Fix strncmp() size argument.
......................................................................
WIP: Fix strncmp() size argument.
For a comparision with a string literal, say "PSEUDO", the max bytes to
compare should be sizeof("PSEUDO") or strlen("PSEUDO")+1 unless, of
course, we are only trying to make a prefix comparision.
If one of the strings to strncmp is a string literal, then there is no
advantage using strncmp at all, and we could just use strcmp() as well.
Change-Id: Ib1c57aa1db76c0ae98a8f37a41daf55ed2d7c7b2
Signed-off-by: Malahal Naineni <mala...@us.ibm.com>
---
M src/FSAL/FSAL_VFS/handle.c
M src/FSAL/FSAL_VFS/xattrs.c
M src/MainNFSD/nfs_rpc_callback.c
M src/Protocols/9P/9p_version.c
M src/Protocols/9P/9p_xattrcreate.c
M src/Protocols/NFS/nfs4_pseudo.c
M src/Protocols/NFS/nfs_proto_tools.c
M src/RPCAL/gss_credcache.c
M src/dbus/dbus_server.c
M src/tools/multilock/ml_functions.c
10 files changed, 19 insertions(+), 19 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha
refs/changes/44/404744/1
--
To view, visit https://review.gerrithub.io/404744
To unsubscribe, visit https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib1c57aa1db76c0ae98a8f37a41daf55ed2d7c7b2
Gerrit-Change-Number: 404744
Gerrit-PatchSet: 1
Gerrit-Owner: Malahal <mala...@gmail.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel