Skip to content

Commit 87551eb

Browse files
Comments and Name Changes
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
1 parent 3b34ca3 commit 87551eb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pyracf/common/irrsmo00.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ typedef struct {
1313
char str[8];
1414
} VarStr_T;
1515

16+
// This function changes any null character not preceded by '>' to whitespace
17+
// This works around an issue with IRRSMO00 treating whitespace as null characters
18+
// which led to premature string termination
1619
void null_byte_fix(char* str, unsigned int str_len) {
1720
for (int i = 1; i < str_len; i++){
1821
if (str[i] == 0) {

pyracf/resource/resource_admin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def __init__(
5959
"cdtinfo:case_allowed": "case",
6060
"cdtinfo:default_racroute_return_code": "defaultrc",
6161
"cdtinfo:valid_first_characters": "first",
62-
"cdtinfo:generic": "generic",
63-
"cdtinfo:genlist": "genlist",
62+
"cdtinfo:generic_profile_checking_classes": "racf:generic",
63+
"cdtinfo:generic_profile_sharing_classes": "racf:genlist",
6464
"cdtinfo:grouping_class_name": "grouping",
6565
"cdtinfo:key_qualifiers": "keyqual",
6666
"cdtinfo:manditory_access_control_processing": "macprocessing",
@@ -185,8 +185,8 @@ def __init__(
185185
"case": "caseAllowed",
186186
"defaultrc": "defaultRacrouteReturnCode",
187187
"first": "validFirstCharacters",
188-
"generic": "generic",
189-
"genlist": "genlist",
188+
"generic": "genericProfileCheckingClasses",
189+
"genlist": "genericProfileSharingClasses",
190190
"group": "groupingClassName",
191191
"keyqualifiers": "keyQualifiers",
192192
"macprocessing": "manditoryAccessControlProcessing",

0 commit comments

Comments
 (0)