Skip to content

Commit

Permalink
Fix GH-10202: posix_getgr(gid|nam)_basic.phpt fail
Browse files Browse the repository at this point in the history
The issue was that passwd was empty for the issue reporter, but the test
expected passwd to be non-empty. An empty passwd can occur if there is
no (encrypted) group password set up.
  • Loading branch information
nielsdos authored and devnexen committed Jan 2, 2023
1 parent 4c9375e commit d5f0362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/posix/tests/posix_getgrgid_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Basic test of POSIX getgid and getgrid functions
Array
(
[name] => %s
[passwd] => %a
[passwd] => %A
[members] => Array
%a

Expand Down
2 changes: 1 addition & 1 deletion ext/posix/tests/posix_getgrnam_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ array(4) {
["name"]=>
string(%d) "%s"
["passwd"]=>
string(1) "%s"
string(%d) "%S"
["members"]=>
%a
["gid"]=>
Expand Down

0 comments on commit d5f0362

Please sign in to comment.