File tree Expand file tree Collapse file tree
src/Streamly/Coreutils/FileTest Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ import System.Win32.Types
7878 , LPDWORD
7979 , failIfFalse_
8080 , iNVALID_HANDLE_VALUE
81- , toBool
8281 , withFilePath
8382 )
8483
@@ -375,7 +374,7 @@ isPathOwnedByCurrentUser :: FilePath -> IO Bool
375374isPathOwnedByCurrentUser path =
376375 withFileOwnerSID path $ \ fileSid ->
377376 withEffectiveUserSID $ \ userSid ->
378- toBool <$> c_EqualSid fileSid userSid
377+ c_EqualSid fileSid userSid
379378
380379isOwnedByCurrentUser :: FileTest
381380isOwnedByCurrentUser = withPathM isPathOwnedByCurrentUser
@@ -388,7 +387,7 @@ isPathOwnedByCurrentGroup :: FilePath -> IO Bool
388387isPathOwnedByCurrentGroup path =
389388 withFilePrimaryGroupSID path $ \fileSid ->
390389 withEffectiveGroupSID $ \userSid ->
391- (/= 0) <$> c_EqualSid fileSid userSid
390+ c_EqualSid fileSid userSid
392391
393392isOwnedByCurrentGroup :: FileTest
394393isOwnedByCurrentGroup = withPathM isPathOwnedByCurrentGroup
You can’t perform that action at this time.
0 commit comments