Oh dear. Take two! *crosses fingers*
-SDL
-----Original Message-----
From: David Grayson [mailto:[email protected]]
Sent: Sunday, 28 May 2017 1:47 PM
To: [email protected]
Subject: Re: [Mingw-w64-public] [PATCH] Add flag for symlink creation by
unprivileged users
Oops, there's no attachment. Try sending it with a MIME type of text/plain so
SourceForge does not eat it; you might have to add a .txt extension to it to
make your mail client do that.
--David
On Sat, May 27, 2017 at 7:51 PM, Samuel Leslie <[email protected]> wrote:
> Sounds like I've misinterpreted the correct usage of
> VALID_SYMBOLIC_LINK_FLAGS. Apologies! I've attached an amended patch in the
> event that's helpful.
>
>
> Kind regards,
> Samuel Leslie
>
> -----Original Message-----
> From: Liu Hao [mailto:[email protected]]
> Sent: Sunday, 28 May 2017 8:35 AM
> To: [email protected]; JonY
> <[email protected]>
> Subject: Re: [Mingw-w64-public] [PATCH] Add flag for symlink creation
> by unprivileged users
>
> On 2017/5/27 21:35, JonY wrote:
>> On 05/27/2017 11:14 AM, Samuel Leslie wrote:
>>> The MSDN documentation doesn't appear to have been updated yet:
>>> https://msdn.microsoft.com/en-us/library/windows/desktop/aa363866(v=
>>> v
>>> s.85).aspx
>>>
>>> But you can find the details on the official developer blog:
>>> https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-1
>>> 0
>>> /
>>>
>>
>> Patch looks good.
> I don't think so...
>
> ```
> C:\Program Files (x86)\Windows Kits>grep -FnrI
> VALID_SYMBOLIC_LINK_FLAGS
> 10/Include/10.0.14393.0/um/WinBase.h:8636:#define
> VALID_SYMBOLIC_LINK_FLAGS SYMBOLIC_LINK_FLAG_DIRECTORY // & whatever other
> flags we think of!
> 8.1/Include/um/WinBase.h:8515:#define VALID_SYMBOLIC_LINK_FLAGS
> SYMBOLIC_LINK_FLAG_DIRECTORY // & whatever other flags we think of!
> ```
>
> It is the definition of `SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE`
> that looks good. The definition of `VALID_SYMBOLIC_LINK_FLAGS` should be left
> intact.
>
>
> --
> Best regards,
> LH_Mouse
>
>
> ----------------------------------------------------------------------
> -------- Check out the vibrant tech community on one of the world's
> most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
> ----------------------------------------------------------------------
> -------- Check out the vibrant tech community on one of the world's
> most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech
sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
From e430cccef2326c9bedb87b7ea66c6e0a1e641ee9 Mon Sep 17 00:00:00 2001
From: "Samuel D. Leslie" <[email protected]>
Date: Sat, 27 May 2017 21:00:02 +1000
Subject: [PATCH] Add flag for symlink creation by unprivileged users
The MSDN documentation doesn't appear to have been updated yet:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa363866(v=vs.85).aspx
But you can find the details on the official developer blog:
https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/
Signed-off-by: Samuel D. Leslie <[email protected]>
---
mingw-w64-headers/include/winbase.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/mingw-w64-headers/include/winbase.h
b/mingw-w64-headers/include/winbase.h
index 7e12bcbd..74bc512c 100644
--- a/mingw-w64-headers/include/winbase.h
+++ b/mingw-w64-headers/include/winbase.h
@@ -2872,6 +2872,7 @@ extern "C" {
#if _WIN32_WINNT >= 0x0600
#define SYMBOLIC_LINK_FLAG_DIRECTORY (0x1)
+#define SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE (0x2)
#define VALID_SYMBOLIC_LINK_FLAGS SYMBOLIC_LINK_FLAG_DIRECTORY
--
2.13.0.windows.1.14.g1169e00e0a.dirty
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public