Re: [bug: csih] Setting privileged rights to cyg_server fails on Windows 7.

2018-06-13 Thread Shaddy Baddah
Hi, On 14/06/18 07:22, Takashi Yano wrote: Hi Corinna, On Wed, 13 Jun 2018 20:14:07 +0200 Corinna Vinschen wrote: There's something fishy in your environment. The variable LOGONSERVER is always set in Windows NT, at least since NT4. For standalone machines LOGONSERVER is set to "\\". You

Re: [bug: csih] Setting privileged rights to cyg_server fails on Windows 7.

2018-06-13 Thread Takashi Yano
Hi Corinna, On Wed, 13 Jun 2018 20:14:07 +0200 Corinna Vinschen wrote: > There's something fishy in your environment. The variable LOGONSERVER > is always set in Windows NT, at least since NT4. For standalone > machines LOGONSERVER is set to "\\". You should really > try to find out why

Re: GCC 7.3.0 -std=gnu++17 failed to getline() from std::ifstream

2018-06-13 Thread Christian Franke
Marco Atzeri wrote: On 6/12/2018 7:11 PM, Christian Franke wrote: ... The attached patch for /usr/lib/gcc/*-pc-cygwin/7.3.0/include/c++/bits/basic_string.h fixes this. Christian Thanks Christian for the investigation. It seems an upstream bug so could you report it there ? Done:

Re: Windows upgrade

2018-06-13 Thread Hans-Bernhard Bröker
Am 13.06.2018 um 01:30 schrieb Alejandro Benitez: It's somehow clear I thankfully won't need to upgrade to cygwin64 until later, While you don't need to do it, you'll have to re-install Cygwin anyway, and frankly, installing 32-bit Cygwin from scratch, on a 64-bit Windows machine, just

Re: xterm / Windows 10 question

2018-06-13 Thread Matt Nicholas
Hi Andrey, I'm starting to feel a bit guilty about wasting bandwidth on the Cygwin mailing list because my initial question was answered by other posters and the problem has, as a practical matter, been solved. That's not to say I understand all aspects of the interaction between Windows 10

Re: [bug: csih] Setting privileged rights to cyg_server fails on Windows 7.

2018-06-13 Thread Corinna Vinschen
On Jun 13 22:49, Takashi Yano wrote: > Hi, > > I have found that iu-config of inetutils package fails to set > the privileged rights to cyg_server on Windows 7 if the machine > is not domain member. > > I looked into this problem, and found that this is the problem > of csih package. > > In

Re: Problematic interpretion of paths starting with double slashes

2018-06-13 Thread Achim Gratz
Sven Eden writes: > True, if /this isn't just a mount point for //this, meaning > that the "that"s are two different files. […] Again, my main objection is that the interpretation of a path should not change based on the availability or non-availability of any host (or its name resolution) over

Re: Windows upgrade

2018-06-13 Thread Achim Gratz
Alejandro Benitez writes: > I have a 32 bit cygwin installation of 8 years of age in an amd64 PC > with 2 GB of RAM with Windows 10. So far it's been so good. I never > had the need to use a 64 bit Windows, but recently 64 bit has become > mainstream and I also started having low memory issues, so

Re: Multiple attempts at opening same pipe for writing fail

2018-06-13 Thread Takashi Yano
Hi João, On Wed, 6 Jun 2018 18:23:08 +0200 João Eiras wrote: > Howdy. > > I've prepared a testcase for a bug or inconsistency with linux that is > affecting one of my projects. > > Basically I have a background process that keeps some state always > running with a pipe open for reading

Re: [bug: csih] Setting privileged rights to cyg_server fails on Windows 7.

2018-06-13 Thread Takashi Yano
Hi Csaba, Thanks for your comment. On Wed, 13 Jun 2018 16:39:22 +0200 Csaba Raduly wrote: > > --- cygwin-service-installation-helper.sh.orig 2015-10-28 > > 18:23:35.0 +0900 > > +++ cygwin-service-installation-helper.sh 2018-06-13 > > 22:24:30.353515600 +0900 > > @@ -2883,6

[bug: login] login command with -f flag fails to switch user account.

2018-06-13 Thread Takashi Yano
Hi, I have found the login command with -f flag fails to switch user account correctly. This causes a severe security problem. User can get console having cyg_server rights without password by following steps. Prepare: 0.1. Install rsh-sever and rsh with inetutils packages. 0.2. Set them up to

Re: [bug: csih] Setting privileged rights to cyg_server fails on Windows 7.

2018-06-13 Thread Csaba Raduly
Hi Takashi-san, On Wed, Jun 13, 2018 at 3:49 PM, Takashi Yano wrote: > Hi, > > I have found that iu-config of inetutils package fails to set > the privileged rights to cyg_server on Windows 7 if the machine > is not domain member. > > I looked into this problem, and found that this is the

[bug: csih] Setting privileged rights to cyg_server fails on Windows 7.

2018-06-13 Thread Takashi Yano
Hi, I have found that iu-config of inetutils package fails to set the privileged rights to cyg_server on Windows 7 if the machine is not domain member. I looked into this problem, and found that this is the problem of csih package. In other words, csih expects environment variable LOGONSERVER

Problems of AF_INET domain socket regarding out-of-band data.

2018-06-13 Thread Takashi Yano
Hello, I have found a few problems of AF_INET domain socket regarding out-of-band data. 1. recv() with MSG_OOB flag eats normal data if no OOB data is sent yet. 2. Calling recv() with MSG_OOB flag is blocked if no OOB data is sent yet. 3. Calling recv() without MSG_OOB flag after receiving

Re: Windows upgrade

2018-06-13 Thread Sam Habiel
Thank you Andrey. I use default settings on Gmail--that's the problem mainly. --Sam On Wed, Jun 13, 2018 at 8:53 AM, Andrey Repin wrote: > Greetings, Sam Habiel! > >> I use Cygwin 32-bit all the time on Windows 10 x64. > > 1. This is not a public census, mind you. > 2. No top-posting in this

Re: Problematic interpretion of paths starting with double slashes

2018-06-13 Thread Andrey Repin
Greetings, Sven Eden! >> Gesendet: Dienstag, 12. Juni 2018 um 18:28 Uhr >> Von: "Brian Inglis" >> On 2018-06-12 07:14, Sven Eden wrote: >> >> Gesendet: Dienstag, 12. Juni 2018 um 13:52 Uhr >> >> Von: "Eric Blake" >> >> Then fix your script to provide 3 slashes instead of 2. Only 2 slashes >> >>

Re: Windows upgrade

2018-06-13 Thread Andrey Repin
Greetings, Sam Habiel! > I use Cygwin 32-bit all the time on Windows 10 x64. 1. This is not a public census, mind you. 2. No top-posting in this mailing list. 3. Please cut your quotes to the necessary part, and teach your mail agent to not quote raw email addresses. Do not feed the spambots.

Re: Problematic interpretion of paths starting with double slashes

2018-06-13 Thread Sven Eden
> Gesendet: Mittwoch, 13. Juni 2018 um 10:09 Uhr > Von: "Corinna Vinschen" > On Jun 12 22:01, Achim Gratz wrote: > > Sven Eden writes: > > > Doing a simple stat on / if (and only if) the UNC lookup > > > fails, does not endanger anything. It wouldn't break > > > anything or do any other damage.

Aw: Re: Re: Problematic interpretion of paths starting with double slashes

2018-06-13 Thread Sven Eden
> Gesendet: Dienstag, 12. Juni 2018 um 20:02 Uhr > Von: Lee > On 6/12/18, Sven Eden wrote: > > Good style is to guarantee, that > > not more than one slash is issued. > > Why don't you submit a patch to guarantee that not more than one slash > is issued? Already done. > Or submit a bug report

Re: Problematic interpretion of paths starting with double slashes

2018-06-13 Thread Sven Eden
> Gesendet: Dienstag, 12. Juni 2018 um 19:56 Uhr > Von: "Eric Blake" > On 06/12/2018 08:14 AM, Sven Eden wrote: > > Good style is nice, but in my book, it is trumped by correct code. Yeah. Point taken. :-D > Hey, let's all assume good intent here. I did not mean what I wrote as > an attack

Aw: Re: Problematic interpretion of paths starting with double slashes

2018-06-13 Thread Sven Eden
> Gesendet: Dienstag, 12. Juni 2018 um 18:28 Uhr > Von: "Brian Inglis" > On 2018-06-12 07:14, Sven Eden wrote: > >> Gesendet: Dienstag, 12. Juni 2018 um 13:52 Uhr > >> Von: "Eric Blake" > >> Then fix your script to provide 3 slashes instead of 2. Only 2 slashes > >> has the magic UNC behavior. >

Re: Aw: Re: Problematic interpretion of paths starting with double slashes

2018-06-13 Thread Corinna Vinschen
On Jun 12 22:01, Achim Gratz wrote: > Sven Eden writes: > > Doing a simple stat on / if (and only if) the UNC lookup > > fails, does not endanger anything. It wouldn't break > > anything or do any other damage. Besides from adding an > > additional <0.01s lag to any failed access that *really* > >

Re: GCC 7.3.0 -std=gnu++17 failed to getline() from std::ifstream

2018-06-13 Thread Marco Atzeri
On 6/12/2018 7:11 PM, Christian Franke wrote: Ivan Shynkarenka wrote: Could reproduce this with 32 and 64 bit Cygwin g++ 7.3.0 A comparison of preprocessor (-E) outputs shows that the "extern template" declarations for getline() are only visible for C++ <= 14. These are guarded by