From a234077ca3c4c51e6f843c84c3d89188c5ba9910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 26 Aug 2004 07:48:46 +0000 Subject: [PATCH] (fetch_acl): use " \t\n" instead of just "\n" for the delim of the third element, this is so we can match "foo@REALMall*@REALM", before it just matched "foo@REALMall*@REALM", but that is kind of luck since what really happen was that the last 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 --- lib/kadm5/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kadm5/acl.c b/lib/kadm5/acl.c index 71ee6cf91..f691f98ef 100644 --- a/lib/kadm5/acl.c +++ b/lib/kadm5/acl.c @@ -115,7 +115,7 @@ fetch_acl (kadm5_server_context *context, ret = _kadm5_string_to_privs(p, &flags); if (ret) break; - p = strtok_r(NULL, "\n", &foo); + p = strtok_r(NULL, " \t\n", &foo); if (p == NULL) { *ret_flags = flags; break;