summaryrefslogtreecommitdiff
path: root/ghc/InteractiveUI.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/InteractiveUI.hs')
-rw-r--r--ghc/InteractiveUI.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs
index 9941a60f5b..fc2883f837 100644
--- a/ghc/InteractiveUI.hs
+++ b/ghc/InteractiveUI.hs
@@ -611,8 +611,10 @@ checkPerms name =
groupWriteMode /= mode `intersectFileModes` groupWriteMode &&
otherWriteMode /= mode `intersectFileModes` otherWriteMode
unless ok $
+ -- #8248: Improving warning to include a possible fix.
putStrLn $ "*** WARNING: " ++ name ++
- " is writable by someone else, IGNORING!"
+ " is writable by someone else, IGNORING!" ++
+ "\nSuggested fix: execute 'chmod 644 " ++ name ++ "'"
return ok
#endif