diff options
author | Ron Yorston <rmy@pobox.com> | 2021-02-12 14:11:01 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-02-12 14:11:01 +0000 |
commit | 7587b56c10a4d11fe434e3eaa51212113f09ec10 (patch) | |
tree | 219264f8c4079d13ab8c29d9d90f04b22e6470bc /include | |
parent | 1b61a02b5139a47e2e3ac8be5afca325d7b3cea7 (diff) | |
download | busybox-w32-7587b56c10a4d11fe434e3eaa51212113f09ec10.tar.gz busybox-w32-7587b56c10a4d11fe434e3eaa51212113f09ec10.tar.bz2 busybox-w32-7587b56c10a4d11fe434e3eaa51212113f09ec10.zip |
win32: implement symlink(2)
Provide an implementation of symlink(2).
Calls to symlink(2) will fail in default Windows installations unless
running with elevated privileges. Failure to create a symlink when
extracting files from an archive is therefore treated as a non-fatal
error.
There are two ways to permit the creation of symlinks:
- Edit security policy to give users the 'Create symbolic links'
privilege. Unfortunately this doesn't work for users who are an
Administrator.
- Enable developer mode, which is available in later versions of
Windows 10.
The ability to create symlinks is not available in Windows XP
or ReactOS.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h index 713205ef9..e2c02babf 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -440,7 +440,7 @@ NOIMPL(setsid,void); | |||
440 | NOIMPL(setuid,uid_t gid UNUSED_PARAM); | 440 | NOIMPL(setuid,uid_t gid UNUSED_PARAM); |
441 | NOIMPL(seteuid,uid_t gid UNUSED_PARAM); | 441 | NOIMPL(seteuid,uid_t gid UNUSED_PARAM); |
442 | unsigned int sleep(unsigned int seconds); | 442 | unsigned int sleep(unsigned int seconds); |
443 | NOIMPL(symlink,const char *oldpath UNUSED_PARAM, const char *newpath UNUSED_PARAM); | 443 | int symlink(const char *target, const char *linkpath); |
444 | static inline void sync(void) {} | 444 | static inline void sync(void) {} |
445 | long sysconf(int name); | 445 | long sysconf(int name); |
446 | IMPL(getpagesize,int,4096,void); | 446 | IMPL(getpagesize,int,4096,void); |