TESTS: fix normalDirPerms
This commit is contained in:
parent
c76c27288d
commit
3e5777bf3a
@ -29,8 +29,7 @@ import System.Exit
|
|||||||
import System.Process
|
import System.Process
|
||||||
import System.Posix.Files.ByteString
|
import System.Posix.Files.ByteString
|
||||||
(
|
(
|
||||||
accessModes
|
groupExecuteMode
|
||||||
, groupExecuteMode
|
|
||||||
, groupReadMode
|
, groupReadMode
|
||||||
, nullFileMode
|
, nullFileMode
|
||||||
, otherExecuteMode
|
, otherExecuteMode
|
||||||
@ -44,7 +43,6 @@ import System.Posix.Files.ByteString
|
|||||||
|
|
||||||
|
|
||||||
-- TODO: chardev, blockdev, namedpipe, socket
|
-- TODO: chardev, blockdev, namedpipe, socket
|
||||||
-- TODO: no permission to open input file/dir
|
|
||||||
|
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
@ -596,5 +594,5 @@ normalDirPerms :: ByteString -> IO ()
|
|||||||
normalDirPerms path = do
|
normalDirPerms path = do
|
||||||
pwd <- fromJust <$> getEnv "PWD" >>= P.parseAbs
|
pwd <- fromJust <$> getEnv "PWD" >>= P.parseAbs
|
||||||
file <- (pwd P.</>) <$> P.parseRel path
|
file <- (pwd P.</>) <$> P.parseRel path
|
||||||
setFileMode (P.fromAbs file) accessModes
|
setFileMode (P.fromAbs file) newDirPerms
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user