Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 52173d4959a1c1e961efab2522e4ba8a22a3c7c6 authored by Brian Curtin on 02 December 2010, 18:29:18 UTC, committed by Brian Curtin on 02 December 2010, 18:29:18 UTC
In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege is an account privilege that is required to be held by the user. Not only must the privilege be enabled for the account, the activated privileges for the currently running application must be adjusted to enable the requested privilege. Rather than exposing an additional function to be called prior to the user's first os.symlink call, we handle the AdjustTokenPrivileges Windows API call internally and only expose os.symlink when the privilege escalation was successful. Due to the change of only exposing os.symlink when it's available, we can go back to the original test skipping methods of checking via `hasattr`.
1 parent 0252462
Tip revision: 52173d4959a1c1e961efab2522e4ba8a22a3c7c6 authored by Brian Curtin on 02 December 2010, 18:29:18 UTC
Fix #9333. Expose os.symlink on Windows only when usable.
Fix #9333. Expose os.symlink on Windows only when usable.
Tip revision: 52173d4
File | Mode | Size |
---|---|---|
Demo | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
Tools | ||
.bzrignore | -rw-r--r-- | 556 bytes |
.gitignore | -rw-r--r-- | 427 bytes |
.hgeol | -rw-r--r-- | 503 bytes |
.hgignore | -rw-r--r-- | 771 bytes |
.hgtags | -rw-r--r-- | 3.9 KB |
LICENSE | -rw-r--r-- | 14.2 KB |
Makefile.pre.in | -rw-r--r-- | 41.1 KB |
README | -rw-r--r-- | 6.7 KB |
configure | -rwxr-xr-x | 395.6 KB |
configure.in | -rw-r--r-- | 121.6 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 33.7 KB |
runtests.sh | -rwxr-xr-x | 2.1 KB |
setup.py | -rw-r--r-- | 78.1 KB |
Computing file changes ...