forked from krb5/krb5
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When parsing a file, ignore sections appearing after a file-flagged section of the same name. Adjust the meaning of group_level in the parser state so that it is 1 for top-level sections, not 0, and simplify the addition of top-level sections to the tree by taking advantage of section-merging by profile_add_node(). Make the final flag work for relations as well as sections. Check it while parsing via check_final parameter in profile_add_node(), and during iteration so we don't continue on to later files in the profile path. Preserve final flags for relations in dump_profile(). Make the final flag available to it via a new output parameter in profile_find_node_relation(). ticket: 9120
- Loading branch information
1 parent
458afb6
commit 063e4f4
Showing
9 changed files
with
140 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,26 @@ value1 | |
value1 | ||
|
||
value2 | ||
value1 | ||
|
||
value3 | ||
|
||
value4 | ||
|
||
value5 | ||
|
||
1 | ||
2 | ||
|
||
1 | ||
|
||
1 | ||
2 | ||
|
||
1 | ||
|
||
1 | ||
|
||
1 | ||
|
||
1 | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# A profile exercising suppression of finalized relations, sections, | ||
# and subsections within the same file. | ||
|
||
[a] | ||
ab = 1 | ||
ab* = 2 | ||
ab = 3 | ||
ab* = 4 | ||
ac* = 1 | ||
|
||
[a] | ||
ac = 2 | ||
ac* = 3 | ||
ac = 4 | ||
|
||
[b]* | ||
ba = 1 | ||
ba* = 2 | ||
bb = { | ||
bba = 1 | ||
} | ||
|
||
[b] | ||
ba = 3 | ||
bb = { | ||
bba = 2 | ||
} | ||
|
||
[c] | ||
ca* = { | ||
caa* = 1 | ||
} | ||
cb = { | ||
cba = 1 | ||
}* | ||
cc = 1 | ||
|
||
[c] | ||
ca = { | ||
caa = 2 | ||
} | ||
cb* = { | ||
cba = 2 | ||
} | ||
cc = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters