GF shell restricted mode: found one more writeFile that should be restricted

This commit is contained in:
hallgren
2011-04-08 13:20:50 +00:00
parent 00a08fb4fb
commit 4d4a58e54a

View File

@@ -171,7 +171,7 @@ allCommands env@(pgf, mos) = Map.fromList [
let file s = "_grph." ++ s
let view = optViewGraph opts
let format = optViewFormat opts
writeUTF8File (file "dot") grph
restricted $ writeUTF8File (file "dot") grph
restrictedSystem $ "dot -T" ++ format ++ " " ++ file "dot" ++ " > " ++ file format
restrictedSystem $ view ++ " " ++ file format
return void