Suggest chmod 755 instead of 644
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 22 Oct 2015 15:35:18 +0000 (17:35 +0200)
committerBen Gamari <ben@smart-cactus.org>
Thu, 22 Oct 2015 15:35:19 +0000 (17:35 +0200)
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

ghc/InteractiveUI.hs

index f3d2035..736b8a9 100644 (file)
@@ -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