[PATCH] libc: Replace i386/sys/fenv.h symlink with an #include shim

2020-05-16 Thread David Macek via Cygwin-patches
Same reasoning as fbaa0967. Signed-off-by: David Macek --- Excuse my ignorance, but is this acceptable? I'm not sure what actually happens with these files, but it'd be nice to get rid of the last symlink in the repo. newlib/libc/machine/i386/sys/fenv.h | 6 +- 1 file changed, 5

[PATCH v2] cygwin: doc: Add keywords for ACE order issues

2020-05-13 Thread David Macek via Cygwin-patches
Windows Explorer shows a warning with Cygwin-created DACLs, but putting the text of the warning into Google doesn't lead to the relevant Cygwin docs. Let's copy the warning text into the docs in the hopes of helping confused users. Most of the credit for the wording belongs to Yaakov Selkowitz.

Re: [PATCH] cygwin: doc: Add keywords for ACE order issues

2020-05-12 Thread David Macek via Cygwin-patches
> +warning says "The permissions on ... are incorrectly orderer, which may Oof. Please fix "orderer" to "ordered" if accepted. -- David Macek

[PATCH] cygwin: doc: Add keywords for ACE order issues

2020-05-12 Thread David Macek via Cygwin-patches
Windows Explorer shows a warning with Cygwin-created DACLs, but putting the text of the warning into Google doesn't lead to the relevant Cygwin docs. Let's copy the warning text into the docs in the hopes of helping confused users. Latest inquiry:

[PATCH 1/3 v3] Cygwin: accounts: Unify nsswitch.conf db_* defaults

2020-04-21 Thread David Macek via Cygwin-patches
Signed-off-by: David Macek --- winsup/cygwin/uinfo.cc | 11 +-- winsup/doc/ntsec.xml | 21 ++--- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 57d90189d3..2d5fc488bb 100644 ---

[PATCH 1/3 v2] Cygwin: accounts: Unify nsswitch.conf db_* defaults

2020-04-20 Thread David Macek via Cygwin-patches
Signed-off-by: David Macek --- winsup/cygwin/uinfo.cc | 11 +-- winsup/doc/ntsec.xml | 27 +++ 2 files changed, 8 insertions(+), 30 deletions(-) diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 57d90189d3..2d5fc488bb 100644 ---

[PATCH 2/3 v2] Cygwin: accounts: Don't keep old schemes when parsing nsswitch.conf

2020-04-20 Thread David Macek via Cygwin-patches
The implicit assumption seemed to be that any subsequent occurence of the same setting in nsswitch.conf is supposed to rewrite the previous ones completely. This was not the case if the third or any further schema was previously defined and the last line defined less than that (but at least 2),

[PATCH 3/3] Cygwin: accounts: Report unrecognized db_* nsswitch.conf keywords

2020-04-20 Thread David Macek via Cygwin-patches
Signed-off-by: David Macek --- winsup/cygwin/uinfo.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index b733a6ee87..e105248c20 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -828,6 +828,8 @@

License declaration

2020-04-20 Thread David Macek via Cygwin-patches
Patches to the Cygwin sources sent by me are licensed under the 2-clause BSD license. This applies to all past patches as well. I'll try to add a Signed-off-by to each patch. -- David Macek

[PATCH 2/2] cygheap_pwdgrp: Don't keep old schemes when parsing nsswitch.conf

2020-04-17 Thread David Macek via Cygwin-patches
The implicit assumption seemed to be that any subsequent occurence of the same setting in nsswitch.conf is supposed to rewrite the previous ones completely. This was not the case if the third or any further schema was previously defined and the last line defined less than that (but at least 2),

[PATCH 1/2] cygheap_pwdgrp: Don't invent undocumented defaults in nsswitch.conf

2020-04-17 Thread David Macek via Cygwin-patches
--- winsup/cygwin/uinfo.cc | 6 -- 1 file changed, 6 deletions(-) diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 57d90189d3..227faa4248 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -831,12 +831,6 @@ cygheap_pwdgrp::nss_init_line (const char *line)

[PATCH] cygheap_pwdgrp: Handle invalid db_* entries correctly

2020-04-16 Thread David Macek via Cygwin-patches
If the first scheme in db_* was invalid, the code would think there were no schemes specified and replace the second scheme with NSS_SCHEME_DESC. Signed-off-by: David Macek --- winsup/cygwin/uinfo.cc | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/uinfo.cc