#20606: Handle "setting permissions on DOT_SAGE" better on Cygwin
-------------------------------------+-------------------------------------
Reporter: embray | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-7.3
Component: porting: Cygwin | Keywords:
Merged in: | Authors: Erik Bray
Reviewers: | Report Upstream: N/A
Work issues: | Branch: u/embray/cygwin-
Commit: | dot-sage
33da8214d1d3bb82e9385fb8439ddc8ef4b25cc4| Dependencies:
Stopgaps: |
-------------------------------------+-------------------------------------
For one, this code should only be executed if os.chmod exists, which it
does not normally on Windows. Granted, we are not currently targeting
native Windows support, but for the future it's nice to check.
At any rate, this often fails quietly on Cygwin as well. This is because
Windows filesystems can be mounted in Cygwin with or without ACL (Access
Control List) support--Windows' (and hence NTFS's native filesystem
permission system). With ACL support enabled, Cygwin's FS layer tries
(and does a reasonably good job) at emulating UNIX-style permissions
through the ACL.
However, if a filesystem is mounted with no ACL support, most attempts to
chmod a file or directory will either result in a no-op, or at least not
do exactly what was expected (minimal support for the read-only flag is
provided, but not much else). Therefore, setting the requested
permissions on DOT_SAGE will quietly fail, resulting in repetitious
"Setting permissions of DOT_SAGE directory" messages every single time
sage.misc is imported. This also causes several tests to break.
As a workaround, when the permissions are *not* actually being set we just
remain quiet about it and don't tell the user that something is happening
when it isn't.
--
Ticket URL: <http://trac.sagemath.org/ticket/20606>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.