You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the codebase was unified to handling mode bits as octal, the printf specifiers were not updated to handle that. Fix this.
Signed-off-by: Jeremi Piotrowski <[email protected]>
Copy file name to clipboardexpand all lines: src/common/commonutils/UserUtils.c
+7-7
Original file line number
Diff line number
Diff line change
@@ -1734,7 +1734,7 @@ int CheckRestrictedUserHomeDirectories(unsigned int* modes, unsigned int numberO
1734
1734
{
1735
1735
if (0==CheckDirectoryAccess(userList[i].home, userList[i].userId, userList[i].groupId, modes[j], true, NULL, log))
1736
1736
{
1737
-
OsConfigLogInfo(log, "CheckRestrictedUserHomeDirectories: user '%s' (%u, %u) has proper restricted access (%u) for their assigned home directory '%s'",
1737
+
OsConfigLogInfo(log, "CheckRestrictedUserHomeDirectories: user '%s' (%u, %u) has proper restricted access (%03o) for their assigned home directory '%s'",
@@ -1797,7 +1797,7 @@ int SetRestrictedUserHomeDirectories(unsigned int* modes, unsigned int numberOfM
1797
1797
{
1798
1798
if (0==CheckDirectoryAccess(userList[i].home, userList[i].userId, userList[i].groupId, modes[j], true, NULL, log))
1799
1799
{
1800
-
OsConfigLogInfo(log, "SetRestrictedUserHomeDirectories: user '%s' (%u, %u) already has proper restricted access (%u) for their assigned home directory '%s'",
1800
+
OsConfigLogInfo(log, "SetRestrictedUserHomeDirectories: user '%s' (%u, %u) already has proper restricted access (%03o) for their assigned home directory '%s'",
OsConfigLogInfo(log, "SetRestrictedUserHomeDirectories: user '%s' (%u, %u) has now proper restricted access (%u) for their assigned home directory '%s'",
1811
+
OsConfigLogInfo(log, "SetRestrictedUserHomeDirectories: user '%s' (%u, %u) has now proper restricted access (%03o) for their assigned home directory '%s'",
0 commit comments