summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2015-10-22 17:35:18 +0200
committerBen Gamari <ben@smart-cactus.org>2015-10-22 17:35:19 +0200
commit0ae6a43ebccca65c3a6b6172e0513802d303e84e (patch)
tree8567b060f8a9601590167c77a3fa8b29c59d19b2 /ghc
parent9cb192ce4b34a472041010df9c30f5d741eb0261 (diff)
downloadhaskell-0ae6a43ebccca65c3a6b6172e0513802d303e84e.tar.gz
Suggest chmod 755 instead of 644
Previous suggestion would clear executable bit, meaning directory couldn't be entered. Fixes #11003. Test Plan: Read message. Reviewers: austin, thomie, dfeuer Reviewed By: thomie, dfeuer Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1350 GHC Trac Issues: #11003
Diffstat (limited to 'ghc')
-rw-r--r--ghc/InteractiveUI.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs
index f3d2035b05..736b8a957e 100644
--- a/ghc/InteractiveUI.hs
+++ b/ghc/InteractiveUI.hs
@@ -630,7 +630,7 @@ checkPerms file =
-- #8248: Improving warning to include a possible fix.
putStrLn $ "*** WARNING: " ++ file ++
" is writable by someone else, IGNORING!" ++
- "\nSuggested fix: execute 'chmod 644 " ++ file ++ "'"
+ "\nSuggested fix: execute 'chmod go-w " ++ file ++ "'"
return ok
#endif