Skip to content

Commit 02f4fae

Browse files
monkeyiqtvdijen
authored andcommitted
The directory being writable is not related to mkdir (simplesamlphp#2459)
No need to use elseif here, we might as well test for writability all the time.
1 parent f92fa1f commit 02f4fae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/SimpleSAML/Utils/System.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ public function getTempDir(): string
116116
(is_array($error) ? $error['message'] : 'no error available'),
117117
);
118118
}
119-
} elseif (!is_writable($tempDir)) {
119+
}
120+
121+
if (!is_writable($tempDir)) {
120122
throw new Error\Exception(
121123
'Temporary directory "' . $tempDir .
122124
'" cannot be written to by the current user' .

0 commit comments

Comments
 (0)