File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,14 +331,14 @@ isOwnedByCurrentGroup = FileTest.isOwnedByCurrentGroup
331331
332332hasPermissions :: (FileMode , FileMode , FileMode ) -> FileTest
333333hasPermissions (user, group, other) = withStateM $ \ fp st -> do
334- isOwner <- testGeneral fp st isOwnedByCurrentUser
335- let checkMode = testGeneral fp st . hasMode
334+ isOwner <- testWithStatus fp st isOwnedByCurrentUser
335+ let checkMode = testWithStatus fp st . hasMode
336336 if isOwner
337337 then checkMode user
338338#if !defined(CABAL_OS_WINDOWS)
339339 else do
340340 -- XXX need to check access via other group memberships as well
341- isGroup <- testGeneral fp st isOwnedByCurrentGroup
341+ isGroup <- testWithStatus fp st isOwnedByCurrentGroup
342342 if isGroup
343343 then checkMode group
344344 else checkMode other
You can’t perform that action at this time.
0 commit comments