Re: How can I get the group SID for a file in cmd.exe (powershell is not an option)?

2024-02-27 Thread Bill Stewart via Cygwin
On Tue, Feb 27, 2024 at 7:42 AM Cedric Blancher wrote:

How can I get the group SID for a file in cmd.exe (powershell is not an
> option)?
>

Why is PowerShell not an option?

(I ask because PowerShell has been a built-in part of the Windows since
Windows 7--that's over 14 years ago as I write this.)

Bill

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


cygwin.cygwin.narkive.com

2024-02-27 Thread Ruth Bible via Cygwin
Hi ,

We collaborate with businesses to offer an advanced cloud-based phone
solution, inclusive of video conferencing and text messaging, all at a
lower cost compared to traditional phone providers.

Our platform stands out with exceptional features such as call recording,
call ID, integration with CRM systems, and much more.

Could I share some insights about our cutting-edge VoIP service?

Warm regards,
Ruth Bible | Telecommunications Specialist

*24X7 OnTop LLC*

5859 McDovie Ave, Woodland Hills, CA 91367
Other Presence: MA | WA | CO | ID | DE | CT | UT | GA and FL

To respect your preferences, we are here to accommodate. Please let us know
if you'd like to stop receiving our emails by responding with RULE-OUT.

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Updated: lighttpd-1.4.74

2024-02-27 Thread Glenn Strauss
Version 1.4.74-1 of "lighttpd" has been uploaded.

lighttpd is a secure, fast, modular web server with low resource usage

lighttpd 1.4.74:
  bugs fixes, portability, expand CI

Note:
  This cygwin lighttpd-1.4.74-1 release requires >= cygwin-3.5.0 to take
  advantage of new support for posix_spawn_file_actions_addfchdir_np().
  As this support is optional, please contact me if this is a hardship
  for those unable to upgrade to cygwin-3.5.0 and I can create a package
  of lighttpd without this feature, whose use merely provides a marginal
  performance improvement for starting CGI programs.

Source: https://git.lighttpd.net/lighttpd/lighttpd1.4.git/
News: https://www.lighttpd.net/
License: BSD 3-clause
  https://git.lighttpd.net/lighttpd/lighttpd1.4/src/branch/master/COPYING
-- 
  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

The easiest way to unsubscribe is to visit 
, and click 'Unsubscribe'.

If you need more information on unsubscribing, start reading here: 
.



openat(O_DIRECT) supported in Cygwin?

2024-02-27 Thread Martin Wege via Cygwin
Hello,

Does Cygwin support openat(O_DIRECT)? Which effect does O_DIRECT in
Cygwin have, and which underlying Windows API is used?

Thanks,
Martin

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: [PATCH 2/2] Cygwin: remove ENOSHARE and ECASECLASH from _sys_errlist[]

2024-02-27 Thread Christian Franke

Hi Corinna,

Corinna Vinschen wrote:

On Feb 27 13:18, Christian Franke wrote:

...

diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc
index 7d58e62ec..d8c057e51 100644
--- a/winsup/cygwin/errno.cc
+++ b/winsup/cygwin/errno.cc
@@ -167,8 +167,8 @@ const char *_sys_errlist[] =
  /* ESTALE 133 */"Stale NFS file handle",
  /* ENOTSUP 134 */   "Not supported",
  /* ENOMEDIUM 135 */ "No medium found",
-/* ENOSHARE 136 */   "No such host or network path",
-/* ECASECLASH 137 */ "Filename exists with different case",
+ NULL, /* Was ENOSHARE 136, no longer used. */
+ NULL, /* Was ECASECLASH 137, no longer used. */

In terms of politenness, wouldn't it be better to define them as
empty strings?  This may be one crash less in already existing
binaries...


Indeed, I missed that case. Patch attached.

Christian

From 151da4ef76f84cd0343e6f49aa23de398ca73d1c Mon Sep 17 00:00:00 2001
From: Christian Franke 
Date: Tue, 27 Feb 2024 17:21:45 +0100
Subject: [PATCH 2/2] Cygwin: set ENOSHARE and ECASECLASH _sys_errlist[]
 entries to empty

These errno values are no longer used by Cygwin.  Change the entries
to empty strings instead of NULL to avoid crashes in existing
binaries directly accessing the table.  Enhance strerror_worker()
such that empty strings also result in "Unknown error ..." messages.
Also add a static_assert check for the _sys_errlist[] size.

Signed-off-by: Christian Franke 
---
 winsup/cygwin/errno.cc | 12 +---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc
index 7d58e62ec..004a4021e 100644
--- a/winsup/cygwin/errno.cc
+++ b/winsup/cygwin/errno.cc
@@ -167,8 +167,8 @@ const char *_sys_errlist[] =
 /* ESTALE 133 */ "Stale NFS file handle",
 /* ENOTSUP 134 */"Not supported",
 /* ENOMEDIUM 135 */  "No medium found",
-/* ENOSHARE 136 */   "No such host or network path",
-/* ECASECLASH 137 */ "Filename exists with different case",
+ "", /* Was ENOSHARE 136, no longer used. */
+ "", /* Was ECASECLASH 137, no longer used. */
 /* EILSEQ 138 */ "Invalid or incomplete multibyte or wide character",
 /* EOVERFLOW 139 */  "Value too large for defined data type",
 /* ECANCELED 140 */  "Operation canceled",
@@ -177,6 +177,8 @@ const char *_sys_errlist[] =
 /* ESTRPIPE 143 */   "Streams pipe error"
 };
 
+static_assert(143 + 1 == sizeof (_sys_errlist) / sizeof (_sys_errlist[0]));
+
 int NO_COPY_INIT _sys_nerr = sizeof (_sys_errlist) / sizeof (_sys_errlist[0]);
 };
 
@@ -228,7 +230,11 @@ strerror_worker (int errnum)
 {
   char *res;
   if (errnum >= 0 && errnum < _sys_nerr)
-res = (char *) _sys_errlist [errnum];
+{
+  res = (char *) _sys_errlist [errnum];
+  if (res && !*res)
+   res = NULL;
+}
   else
 res = NULL;
   return res;
-- 
2.43.0



Re: What's the official state of Python module pynfft in Cygwin?

2024-02-27 Thread marco atzeri via Cygwin
On Tue, Feb 27, 2024 at 4:27 PM Oriol Monserrat via Cygwin
 wrote:
>
> Hi all,
>
> We are trying to install pynfft in Cygwin. Is it
> supported officially? Or unsupported but instalable?
>
> Thank you in advance
>

It does NOT exist as Cygwin package

https://www.cygwin.com/packages/src_package_list.html

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


What's the official state of Python module pynfft in Cygwin?

2024-02-27 Thread Oriol Monserrat via Cygwin
Hi all,

We are trying to install pynfft in Cygwin. Is it
supported officially? Or unsupported but instalable?

Thank you in advance

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: How can I get the group SID for a file in cmd.exe (powershell is not an option)?

2024-02-27 Thread Corinna Vinschen via Cygwin
On Feb 27 15:41, Cedric Blancher via Cygwin wrote:
> Good afternoon!
> 
> How can I get the group SID for a file in cmd.exe (powershell is not an 
> option)?
> Is it possible to add an option to ls -l to list the user/group SIDs too?

No, but you can use Cygwin tools:

 getent -w group $(ls -gn foo | awk '{print $3}') | awk -F: '{print $4}'


Corinna

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: [PATCH 2/2] Cygwin: remove ENOSHARE and ECASECLASH from _sys_errlist[]

2024-02-27 Thread Corinna Vinschen
Hi Christian,

On Feb 27 13:18, Christian Franke wrote:
> From f495fb0e7c2bd3a42f16f81af18c64ffaba9a860 Mon Sep 17 00:00:00 2001
> From: Christian Franke 
> Date: Tue, 27 Feb 2024 13:05:36 +0100
> Subject: [PATCH 2/2] Cygwin: remove ENOSHARE and ECASECLASH from
>  _sys_errlist[]
> 
> These errno values are no longer used by Cygwin.  Also add a
> static_assert check for _sys_errlist[] size.
> 
> Signed-off-by: Christian Franke 
> ---
>  winsup/cygwin/errno.cc | 6 --
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc
> index 7d58e62ec..d8c057e51 100644
> --- a/winsup/cygwin/errno.cc
> +++ b/winsup/cygwin/errno.cc
> @@ -167,8 +167,8 @@ const char *_sys_errlist[] =
>  /* ESTALE 133 */   "Stale NFS file handle",
>  /* ENOTSUP 134 */  "Not supported",
>  /* ENOMEDIUM 135 */"No medium found",
> -/* ENOSHARE 136 */ "No such host or network path",
> -/* ECASECLASH 137 */   "Filename exists with different case",
> +   NULL, /* Was ENOSHARE 136, no longer used. */
> +   NULL, /* Was ECASECLASH 137, no longer used. */

In terms of politenness, wouldn't it be better to define them as
empty strings?  This may be one crash less in already existing
binaries...


Corinna


How can I get the group SID for a file in cmd.exe (powershell is not an option)?

2024-02-27 Thread Cedric Blancher via Cygwin
Good afternoon!

How can I get the group SID for a file in cmd.exe (powershell is not an option)?
Is it possible to add an option to ls -l to list the user/group SIDs too?

Ced
-- 
Cedric Blancher 
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Problem with pyNFFT install

2024-02-27 Thread marco atzeri via Cygwin
On Tue, Feb 27, 2024 at 11:17 AM natan_b--- via Cygwin
 wrote:
>
> Hi Guy,
>
> I've a problem to install pyNFFT with python3.9 -m pip install pyNFFT
>
> I ask if possible to install 3.11 python version
>

It was on the TODO list, but I was hit by the failed upgrade from
3.9.16-1 to 3.9.18-1

https://cygwin.com/pipermail/cygwin/2024-February/255467.html

I have the strong feeling that it will hit the same issue.

> Thank to all
>
> natanb

Regards
Marco

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


[PATCH 2/2] Cygwin: remove ENOSHARE and ECASECLASH from _sys_errlist[]

2024-02-27 Thread Christian Franke


From f495fb0e7c2bd3a42f16f81af18c64ffaba9a860 Mon Sep 17 00:00:00 2001
From: Christian Franke 
Date: Tue, 27 Feb 2024 13:05:36 +0100
Subject: [PATCH 2/2] Cygwin: remove ENOSHARE and ECASECLASH from
 _sys_errlist[]

These errno values are no longer used by Cygwin.  Also add a
static_assert check for _sys_errlist[] size.

Signed-off-by: Christian Franke 
---
 winsup/cygwin/errno.cc | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc
index 7d58e62ec..d8c057e51 100644
--- a/winsup/cygwin/errno.cc
+++ b/winsup/cygwin/errno.cc
@@ -167,8 +167,8 @@ const char *_sys_errlist[] =
 /* ESTALE 133 */ "Stale NFS file handle",
 /* ENOTSUP 134 */"Not supported",
 /* ENOMEDIUM 135 */  "No medium found",
-/* ENOSHARE 136 */   "No such host or network path",
-/* ECASECLASH 137 */ "Filename exists with different case",
+ NULL, /* Was ENOSHARE 136, no longer used. */
+ NULL, /* Was ECASECLASH 137, no longer used. */
 /* EILSEQ 138 */ "Invalid or incomplete multibyte or wide character",
 /* EOVERFLOW 139 */  "Value too large for defined data type",
 /* ECANCELED 140 */  "Operation canceled",
@@ -177,6 +177,8 @@ const char *_sys_errlist[] =
 /* ESTRPIPE 143 */   "Streams pipe error"
 };
 
+static_assert(143 + 1 == sizeof (_sys_errlist) / sizeof (_sys_errlist[0]));
+
 int NO_COPY_INIT _sys_nerr = sizeof (_sys_errlist) / sizeof (_sys_errlist[0]);
 };
 
-- 
2.43.0



[PATCH 1/2] Cygwin: add compile warning if ENOSHARE or ECASECLASH is used

2024-02-27 Thread Christian Franke
A suggestion for a first (possibly polite) step to get rid of ENOSHARE 
or ECASECLASH. Would also work with clang.


The internally used ENMFILE is not included yet. In theory, it may be 
returned to outside world as it still appears in errmap[].


--
Regards,
Christian

From f3ad1912a9c7fa4cd28ade5dc7c95134be759615 Mon Sep 17 00:00:00 2001
From: Christian Franke 
Date: Tue, 27 Feb 2024 13:03:08 +0100
Subject: [PATCH 1/2] Cygwin: add compile warning if ENOSHARE or ECASECLASH is
 used

These errno values are no longer used by Cygwin.

Signed-off-by: Christian Franke 
---
 newlib/libc/include/sys/errno.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errno.h
index f1509712e..7199db0d2 100644
--- a/newlib/libc/include/sys/errno.h
+++ b/newlib/libc/include/sys/errno.h
@@ -176,9 +176,9 @@ extern __IMPORT char *program_invocation_short_name;
 #ifdef __LINUX_ERRNO_EXTENSIONS__
 #define ENOMEDIUM 135   /* No medium (in tape drive) */
 #endif
-#ifdef __CYGWIN__
-#define ENOSHARE 136/* No such host or network path */
-#define ECASECLASH 137  /* Filename exists with different case */
+#if defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
+#define ENOSHARE (_Pragma("GCC warning \"'ENOSHARE' is no longer used by 
Cygwin\"") 136)
+#define ECASECLASH (_Pragma("GCC warning \"'ECASECLASH' is no longer used by 
Cygwin\"") 137)
 #endif
 #define EILSEQ 138 /* Illegal byte sequence */
 #define EOVERFLOW 139  /* Value too large for defined data type */
-- 
2.43.0



Updated: simdjson-3.7.0-1

2024-02-27 Thread Daisuke Fujimura via Cygwin-announce
The following packages have been uploaded to the Cygwin distribution:

- libsimdjson20-3.7.0-1
- libsimdjson-devel-3.7.0-1

https://cygwin.com/packages/summary/simdjson-src.html
-- 
  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

The easiest way to unsubscribe is to visit 
, and click 'Unsubscribe'.

If you need more information on unsubscribing, start reading here: 
.



Problem with pyNFFT install

2024-02-27 Thread natan_b--- via Cygwin
Hi Guy,

I've a problem to install pyNFFT with python3.9 -m pip install pyNFFT

The 4 version 1.2.3, 1.3.0, 1.3.1, 1.3.2 eject different error:

1.2.3, 1.3.0 and 1.3.1 --> ModuleNotFoundError: No module named 'Cython'

 

Cython 0.29.23 is present!?!?

 

1.3.2 seems works, spend much time to compiling (in parallel cc1 cc1plus on 8 
core) and to end:

.

/tmp/pip-install-que4kv9t/pynfft_9f2cf10cbfa84ffc9f2988ffb058ac39/pynfft/nfft.c:9519:13:
 error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; 
did you mean ‘curexc_traceback’?
9519 | tstate->exc_traceback = *tb;
| ^
| curexc_traceback
error: command '/usr/bin/gcc' failed with exit code 1

 

One note: I installed Scipy 1.9.3 and seems to works with numpy 1.25.2, but in 
interactive mode (>>>) stuck on help(scipy) command!?

I ask if possible to install 3.11 python version

Thank to all

natanb

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: passwd/group/grent fixes for Cygwin 3.5.1?

2024-02-27 Thread Corinna Vinschen via Cygwin
On Feb 27 04:21, Dan Shelton via Cygwin wrote:
> On Mon, 26 Feb 2024 at 10:18, Corinna Vinschen via Cygwin
>  wrote:
> >
> > On Feb 26 04:44, Dan Shelton via Cygwin wrote:
> > > Hello!
> > >
> > > Can these 3 commits please be backported to the Cygwin 3.5.1 branch?
> > >
> > > 4 days agoCorinna VinschenCygwin: getgrent/getpwent: avoid local
> > > enumeration...commit | commitdiff | tree
> > > 4 days agoCorinna VinschenCygwin: getgrent: fix local SAM enumeration
> > > on domain...commit | commitdiff | tree
> > > 5 days agoCorinna VinschenCygwin: passwd/group: drop Capability
> > > SIDscommit | commitdiff | tree
> >
> > Did changing db_enum in /etc/nsswitch.conf help on your test machine?
> 
> Yes, just adding "local" to db_enum worked, but it is not much of a

Thanks, good to know.

> solution since I need Administrator rights on the target machine,
> which is not going to happen.

If you're not admin, why do you have to enumerate accounts?  This
is usually not an action required by standard applications.

> Why are local groups excluded by default?

Because enumerating local group means to enumerate the entire AD
group list on DCs, which is not feasible in some scenarios.  And
there is a way to configure this by changing /etc/nsswitch.conf.
If you need this on machines you're not admin of, why not just
ask the admin to enable this?


Corinna

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Sourceware infrastructure updates for Q1 2024

2024-02-27 Thread Mark Wielaard via Cygwin
Sourceware infrastructure community updates for Q1 2024

A summary of news about Sourceware, the Free Software hosting project
for core toolchain and developer tools, from the last 3 months.

- Sourceware now has an official donation page
- StarFive VisionFive-2 RISC-V boards for builder.sourceware.org
- server2 and server3 disk drive updates
- Upgrading project websites from CVS to GIT
- Sourceware @ Fosdem
- Security policy updates for a CVE system out of control
- Summer of Code

= Sourceware now has an official donation page

  Sourceware is a Free Software hosting project for core toolchain and
  developer tools. Sourceware is maintained by volunteers. Hardware
  and bandwidth is provided by sponsors. Sourceware is a Software
  Freedom Conservancy member project. Conservancy handles all
  non-profit administrivia for Sourceware. Thanks to the Conservancy
  we already have collected enough money for an emergency hardware
  replacement fund. In case one of our hardware partners would
  suddenly and unexpectedly drop support we can now simply buy new
  hardware. And we now also have an official donation page to help
  fund accelerating tasks the community feels most useful.
  
  https://sourceware.org/donate.html

= StarFive VisionFive-2 RISC-V boards for builder.sourceware.org

  StarFive has donated 4 VisionFive-2 risc-v boards with 8GB, 4-core
  JH7110 supporting the RV64GC ISA for the CI running on
  builder.sourceware.org. Which has allowed us to setup CI (and try)
  builders for various projects: annobin, binutils(+try), bzip2,
  debugedit, dwz, elfutils(+try), glibc, poke and libabigail(+try).

  Please contact the builder project if you want to help out with the
  CI services. https://sourceware.org/mailman/listinfo/buildbot

= server2 and server3 disk drive updates

  One of the drives in server2 broke down. It was part of a 10 drive
  raid6 setup, which can take 2 bad disks before full failure. We also
  have a full mirror on server3, which has a similar raid6 setup. We
  ordered 3 new disks, one as replacement for the bad disk and a spare
  for server2 and server3 in case of future drive failures. The drive
  has been replaced and everything is running smoothly. We have a fund
  for replacing hardware when needed. But if you want to help out
  keeping everything running smoothly you can donate on our new
  donation page https://sourceware.org/donate.html

= Upgrading project websites from CVS to GIT.

  Various projects were still creating their project homepages from
  CVS. We upgraded both glibc and binutils to have a public git htdocs
  repository now to which the whole community can contribute.
  
  https://sourceware.org/cgit/binutils-htdocs/
  https://sourceware.org/cgit/glibc-htdocs/
  
  Please contact us if you want to upgrade how you publish your
  projects homepage. https://sourceware.org/mission.html#organization

= Sourceware @ Fosdem

  2024 started strong with various Sourceware core toolchain and
  developer tool projects presenting at Fosdem. If you missed the in
  person meetings, most talks have video recordings:

  https://fosdem.org/2024/schedule/track/gcc/
  https://fosdem.org/2024/schedule/track/debuggers-and-analysis/
  https://fosdem.org/2024/schedule/event/fosdem-2024-2207-the-plan-for-gccrs/

  Various Sourceware volunteers, overseers and project leadership
  committee members also met informally with FSF/GNU and SFC admins to
  coordinate cross free software infrastructure administration
  matters.

  And if you like to organize an online virtual mini-BoF around some
  topic or project then the Conservancy BBB server is available for
  all Sourceware projects. You can create your own account at
  https://bbb.sfconservancy.org/b/signup which we can then activate
  for you. Note: Anyone is able to join a meeting, accounts are only
  required to create new meetings.

= Security policy updates for a CVE system out of control

  The Common Vulnerabilities and Exposures (CVE) system seems broken
  and has been issuing more and more questionable advisories. Various
  Sourceware hosted projects have been writing security policies to
  help users know which bugs might have security implications.

  https://sourceware.org/cgit/elfutils/tree/SECURITY
  https://sourceware.org/cgit/binutils-gdb/tree/binutils/SECURITY.txt
  https://gcc.gnu.org/cgit/gcc/tree/SECURITY.txt

  The glibc project even setup their own security mailinglist and CNA
  (CVE Numbering Authority) publishing their own advisories:
  https://sourceware.org/glibc/security.html
  https://sourceware.org/cgit/glibc/tree/advisories

  If you need any help adding infrastructure services for your
  security projects, please reach out:
  https://sourceware.org/mission.html#organization

= Summer of Code

  Some Sourceware hosted projects will take part in Summer of Code
  2024. If you are interested in participating please see
  https://gcc.gnu.org/wiki/SummerOfCode