Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] Fix remaining readdir() calls in loops with undesirable false evaluation potential #49228

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Nov 12, 2024

Backport of #38630

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot added 3. to review Waiting for reviews technical debt labels Nov 12, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.10 milestone Nov 12, 2024
@yemkareems yemkareems requested a review from susnux November 12, 2024 13:20
@yemkareems yemkareems marked this pull request as ready for review November 12, 2024 13:20
@@ -261,7 +261,7 @@
}

$dh = $this->opendir($path);
while ($file = readdir($dh)) {
while (($file = readdir($dh)) !== false) {

Check notice

Code scanning / Psalm

PossiblyFalseArgument Note

Argument 1 of readdir cannot be false, possibly resource value expected
@@ -527,7 +527,7 @@
}

$dh = $this->opendir($source);
while ($file = readdir($dh)) {
while (($file = readdir($dh)) !== false) {

Check notice

Code scanning / Psalm

PossiblyFalseArgument Note

Argument 1 of readdir cannot be false, possibly resource value expected
@susnux
Copy link
Contributor

susnux commented Nov 12, 2024

@yemkareems can you please remove the [skip ci] from the first commit?

joshtrichards and others added 2 commits November 13, 2024 08:34
…luation potential

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>

[skip ci]
Signed-off-by: yemkareems <yemkareems@gmail.com>
@yemkareems yemkareems force-pushed the backport/38630/stable29 branch from 1463e24 to 051af1a Compare November 13, 2024 03:05
@yemkareems
Copy link
Contributor

yemkareems commented Nov 13, 2024

@yemkareems can you please remove the [skip ci] from the first commit?

@susnux for some reason [skip ci] is not showing up but i was able to amend the commit message and add fix: to it and now the conventiional commit message check passed

@susnux susnux merged commit 8200522 into stable29 Nov 13, 2024
184 checks passed
@susnux susnux deleted the backport/38630/stable29 branch November 13, 2024 03:35
@skjnldsv skjnldsv mentioned this pull request Nov 27, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants