setcifsacl: fix infinite loop in getnumcaces
authorJeff Layton <jlayton@samba.org>
Tue, 29 Jan 2013 02:38:12 +0000 (21:38 -0500)
committerJeff Layton <jlayton@samba.org>
Tue, 29 Jan 2013 02:38:12 +0000 (21:38 -0500)
commitfb9999a9d20495719f3fa323401b087ebef60a0d
treeba1c28ff7dd624b6a5eb7e5097baa2f6d4a404f9
parent1a01f7c4b90695211d12291d7a24bec05b1f2922
setcifsacl: fix infinite loop in getnumcaces

Jian pointed out that this loop can cycle infinitely when the string
contains a ','.

Also, fix typo in manpage that shows a trailing ',' in one example.

Reported-by: Jian Li <jiali@redhat.com>
Signed-off-by: Jeff Layton <jlayton@samba.org>
setcifsacl.1.in
setcifsacl.c