[commit: packages/directory] master: Refactor permissions implementation (00e4eda)
git at git.haskell.org
git at git.haskell.org
Mon Apr 17 21:35:57 UTC 2017
Repository : ssh://git@git.haskell.org/directory
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/00e4edaac522bd74f8f1e049997b50596f57ce5a/directory
>---------------------------------------------------------------
commit 00e4edaac522bd74f8f1e049997b50596f57ce5a
Author: Phil Ruffwind <rf at rufflewind.com>
Date: Tue Mar 7 04:20:50 2017 -0500
Refactor permissions implementation
Permissions on Windows have been simplified to use the underlying
Windows API calls rather than the pseudo-POSIX interface (which chokes
on long paths).
The metadata API has been extended slightly to allow handling of raw
permission bits (Mode). Unfortunately, we can't take full advantage of
it because the existing permissions API is really quirky and
inconsistent and we have to maintain compatibility. It's also unclear
what the ideal mapping between "rwes" and "rwxrwxrwx" should be.
No changes in the semantics of the permissions have been introduced.
>---------------------------------------------------------------
00e4edaac522bd74f8f1e049997b50596f57ce5a
System/Directory.hs | 171 ++++++++++------------------------
System/Directory/Internal/Common.hs | 16 ++++
System/Directory/Internal/Posix.hsc | 50 ++++++++++
System/Directory/Internal/Prelude.hs | 12 +--
System/Directory/Internal/Windows.hsc | 59 ++++++++----
5 files changed, 160 insertions(+), 148 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 00e4edaac522bd74f8f1e049997b50596f57ce5a
More information about the ghc-commits
mailing list