(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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user