Page MenuHomePhabricator

D8981.id21313.diff
No OneTemporary

D8981.id21313.diff

diff --git a/src/applications/diffusion/engine/DiffusionCommitHookEngine.php b/src/applications/diffusion/engine/DiffusionCommitHookEngine.php
--- a/src/applications/diffusion/engine/DiffusionCommitHookEngine.php
+++ b/src/applications/diffusion/engine/DiffusionCommitHookEngine.php
@@ -637,9 +637,19 @@
foreach (Filesystem::listDirectory($directory) as $path) {
$full_path = $directory.DIRECTORY_SEPARATOR.$path;
- if (is_executable($full_path)) {
- $executables[] = $full_path;
+ if (!is_executable($full_path)) {
+ // Don't include non-executable files.
+ continue;
}
+
+ if (basename($full_path) == 'README') {
+ // Don't include README, even if it is marked as executable. It almost
+ // certainly got caught in the crossfire of a sweeping `chmod`, since
+ // users do this with some frequency.
+ continue;
+ }
+
+ $executables[] = $full_path;
}
return $executables;

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 15, 5:14 AM (4 w, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6709924
Default Alt Text
D8981.id21313.diff (980 B)

Event Timeline