(fetch_acl): use " \t\n" instead of just "\n" for the delim of the

third element, this is so we can match
"foo@REALM<SPC>all<SPC><SPC>*@REALM", before it just matched
"foo@REALM<SPC>all<SPC>*@REALM", but that is kind of luck since what
really happen was that the last <SPC> was stamped out, and the it
never strtok_r never needed to parse over it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14157 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-08-26 07:48:46 +00:00
parent cca3f70913
commit a234077ca3

View File

@@ -115,7 +115,7 @@ fetch_acl (kadm5_server_context *context,
ret = _kadm5_string_to_privs(p, &flags); ret = _kadm5_string_to_privs(p, &flags);
if (ret) if (ret)
break; break;
p = strtok_r(NULL, "\n", &foo); p = strtok_r(NULL, " \t\n", &foo);
if (p == NULL) { if (p == NULL) {
*ret_flags = flags; *ret_flags = flags;
break; break;