Skip to content

Commit 969a926

Browse files
cuiweixiemillert
authored andcommitted
env_update_didvar: Fix strncmp length for LOGIN= on AIX
"LOGIN=" is 6 characters, not 8.
1 parent ed591d3 commit 969a926

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/sudoers/env.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ env_update_didvar(const char *ep, unsigned int *didvar)
815815
break;
816816
case 'L':
817817
#ifdef _AIX
818-
if (strncmp(ep, "LOGIN=", 8) == 0)
818+
if (strncmp(ep, "LOGIN=", 6) == 0)
819819
SET(*didvar, DID_LOGIN);
820820
#endif
821821
if (strncmp(ep, "LOGNAME=", 8) == 0)

0 commit comments

Comments
 (0)