From 70c2b176079c63ba5040220c9b59c25029ef8b79 Mon Sep 17 00:00:00 2001 From: Ben Gamari <bgamari.foss@gmail.com> Date: Thu, 22 Oct 2015 17:35:18 +0200 Subject: [PATCH] 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 --- ghc/InteractiveUI.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs index 27343e9cd7fc..ec82e3d39d96 100644 --- a/ghc/InteractiveUI.hs +++ b/ghc/InteractiveUI.hs @@ -614,7 +614,7 @@ checkPerms name = -- #8248: Improving warning to include a possible fix. putStrLn $ "*** WARNING: " ++ name ++ " is writable by someone else, IGNORING!" ++ - "\nSuggested fix: execute 'chmod 644 " ++ name ++ "'" + "\nSuggested fix: execute 'chmod go-w " ++ file ++ "'" return ok #endif -- GitLab