[Packagin bugs: Yaakow/Jari] After a fresh complete cygwin64 installation

2015-02-26 Thread Dr. Volker Zell
Hi The following is a list of packaging bugs/anomalies I discovered after a complete fresh installation of cygwin64 on Windows 7: Packaging bugs: o tig-2.0.2-1 /usr/etc/tigrc -> /etc/tigrc (should use /etc/defaults mechanisms) o docbook-utils-0.6.14-2 /usr/doc/html -> /usr/share/

Re: mingw-runtime 4.01: empty libgmon.a

2015-02-26 Thread Yaakov Selkowitz
On Tue, 2015-02-24 at 22:33 +0100, Teun Burgers wrote: > the libgmon.a is an empty archive. These are the contents of > /usr/i686-pc-mingw32/sys-root/mingw/lib/libgmon.a > > This becomes a problem when attempting to prepare an executable for profiling > with gprof > > /bin/i686-pc-mingw32-gcc.ex

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Achim Gratz
Corinna Vinschen writes: > Having discussed this, I can understand that it may be desirable to > skip the permissions of the SYSTEM account in these circumstances: > > - Computing the POSIX ACL mask and default mask value and thus in > the permission mask as printed by `ls -l'. > > - Changing SYS

oops! apologies to Corinna

2015-02-26 Thread random user
Umm... Sorry! I hope it's clear to all, I meant Corinna ! On 2/26/2015 9:27 PM, random user wrote: >> Regarding Corrinne's proposal to treat SYSTEM's ACE distinct from others >> in forming the apparent group permission "mask": >> >> Might it be sensible to do somewhat similar for the case where a

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread random user
Regarding Corrinne's proposal to treat SYSTEM's ACE distinct from others in forming the apparent group permission "mask": Might it be sensible to do somewhat similar for the case where a file's owner is the same as its primary group (i.e., same SID)? It has seemed the chmod behavior for this case

Re: Why does CYGWIN double the backslash in execvp()?

2015-02-26 Thread A L
Thank you for your response. It may sound plausible but: > you tell Cygwin that you want posix semantics I can't remember seeing that posix semantics require a C library call to modify arguments in the way the shell does; since when cygwin a shell? > split arg 2 into two args: "DIR" and "C:\\"

freopen/fread/popen bug

2015-02-26 Thread Ken Brown
I'm not sure exactly where the bug is, but here's what happens (STC at the end): 1. I use freopen to open a file "foo" and associate it with stdin. 2. I use fread to read a byte from foo. 3. I call popen, expecting the child process to have foo as its stdin, with the file-position indicator po

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Andrey Repin
Greetings, Corinna Vinschen! >> Having discussed this, I can understand that it may be desirable to >> skip the permissions of the SYSTEM account in these circumstances: >> >> - Computing the POSIX ACL mask and default mask value and thus in >> the permission mask as printed by `ls -l'. SYSTEM

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Andrey Repin
Greetings, Corinna Vinschen! > given that SYSTEM has permissions to read and write all files > anyway. Not true. If SYSTEM don't have access to files, it can't do anything at all. This is not Linux, system isn't run from root. > I don't see that a rule to add SYSTEM permissions to all files > ac

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Bryan Berns
>> Crucial vote starting... now. Given my original post, I'm obviously fan of ignoring SYSTEM (S-1-5-18) explicitly. As much as the absolutist programmer in me doesn't like nuanced exceptions like this, I think it's the pragmatic thing to do. -- Problem reports: http://cygwin.com/problems.

Re: Cygwin website uses http: (not https:) for .exe downloads, allowing man-in-the-middle attack

2015-02-26 Thread Warren Young
On Feb 26, 2015, at 3:39 PM, Darik Horn wrote: > > Note that GPG signatures are published for the Cygwin setup binaries: If someone can MITM the *.exe files, they can MITM the GPG sigs, too. You could try and be diligent and check that the signature was made with a GPG key you trust, but I’ll

Re: slow startup after upgrade

2015-02-26 Thread Andrew DeFaria
On 2/26/2015 2:34 PM, Corinna Vinschen wrote: On Feb 26 14:21, Andrew DeFaria wrote: On 2/26/2015 12:24 PM, Corinna Vinschen wrote: On Feb 26 12:04, Andrew DeFaria wrote: On 2/25/2015 4:12 PM, Yaakov Selkowitz wrote: On Wed, 2015-02-25 at 15:52 -0800, Andrew DeFaria wrote: Can somebody summa

Re: Cygwin website uses http: (not https:) for .exe downloads, allowing man-in-the-middle attack

2015-02-26 Thread David A. Wheeler
On Thu, 26 Feb 2015 23:37:37 +0100, Corinna Vinschen wrote: > On Feb 26 17:31, David A. Wheeler wrote: > > The Cygwin front web page ( https://www.cygwin.com/ ) says: > > "Install it by running setup-x86.exe (32-bit installation) or > > setup-x86_64.exe (64-bit installation)." > > > Did you noti

Re: slow startup after upgrade

2015-02-26 Thread Eric Blake
On 02/26/2015 03:31 PM, Corinna Vinschen wrote: > On Feb 26 14:19, Eric Blake wrote: >> On 02/26/2015 01:24 PM, Corinna Vinschen wrote: > Fixes are in snapshots, as well as test releases (currently 1.7.35-0.4) > which can be installed with setup*.exe. Hmmm... https://cygwin.com/fa

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Corinna Vinschen
On Feb 26 23:29, Corinna Vinschen wrote: > Having discussed this, I can understand that it may be desirable to > skip the permissions of the SYSTEM account in these circumstances: > > - Computing the POSIX ACL mask and default mask value and thus in > the permission mask as printed by `ls -l'.

Re: Cygwin website uses http: (not https:) for .exe downloads, allowing man-in-the-middle attack

2015-02-26 Thread Darik Horn
Note that GPG signatures are published for the Cygwin setup binaries: * http://cygwin.com/setup-x86.exe.sig * http://cygwin.com/setup-x86_64.exe.sig -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/doc

Re: Cygwin website uses http: (not https:) for .exe downloads, allowing man-in-the-middle attack

2015-02-26 Thread Corinna Vinschen
On Feb 26 17:31, David A. Wheeler wrote: > The Cygwin front web page ( https://www.cygwin.com/ ) says: > "Install it by running setup-x86.exe (32-bit installation) or > setup-x86_64.exe (64-bit installation)." > > However, both of the links to those .exe executables explicitly use > "http://";, an

Re: slow startup after upgrade

2015-02-26 Thread Corinna Vinschen
On Feb 26 14:21, Andrew DeFaria wrote: > On 2/26/2015 12:24 PM, Corinna Vinschen wrote: > >On Feb 26 12:04, Andrew DeFaria wrote: > >>On 2/25/2015 4:12 PM, Yaakov Selkowitz wrote: > >>>On Wed, 2015-02-25 at 15:52 -0800, Andrew DeFaria wrote: > Can somebody summarize where we're at here. I've be

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Corinna Vinschen
On Feb 26 16:27, Bryan Berns wrote: > > You just have to enable the SeBackupName and SeRestoreName privs. > > Try in Cygwin. It does that automatically. > > > > For cases where you need to stick to the Windows ACLs, use noacl > > mounts. > > Understood --- I can probably set SeBackupPrivilege / >

Re: slow startup after upgrade

2015-02-26 Thread Corinna Vinschen
On Feb 26 14:19, Eric Blake wrote: > On 02/26/2015 01:24 PM, Corinna Vinschen wrote: > >>> Fixes are in snapshots, as well as test releases (currently 1.7.35-0.4) > >>> which can be installed with setup*.exe. > >> > >> Hmmm... https://cygwin.com/faq-nochunks.html#faq.setup.snapshots says: > >> > >>

Cygwin website uses http: (not https:) for .exe downloads, allowing man-in-the-middle attack

2015-02-26 Thread David A. Wheeler
The Cygwin front web page ( https://www.cygwin.com/ ) says: "Install it by running setup-x86.exe (32-bit installation) or setup-x86_64.exe (64-bit installation)." However, both of the links to those .exe executables explicitly use "http://";, and not "https://";, even when you go to the https ve

Re: slow startup after upgrade

2015-02-26 Thread Andrew DeFaria
On 2/26/2015 12:24 PM, Corinna Vinschen wrote: On Feb 26 12:04, Andrew DeFaria wrote: On 2/25/2015 4:12 PM, Yaakov Selkowitz wrote: On Wed, 2015-02-25 at 15:52 -0800, Andrew DeFaria wrote: Can somebody summarize where we're at here. I've been noticing all this email about slow startup and I'm

Re: Why does CYGWIN double the backslash in execvp()?

2015-02-26 Thread Peter Rosin
On 2015-02-26 21:59, A L wrote: > Hi, > Yesterday I asked about the double slash, but my question has got no > attention (despite some other activity > on the list). I deem the behavior as a bug. To make things more > evident (that it's a bug) one can replace "DIR" > with "ECHO" in the code I pos

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Bryan Berns
> That's an administrator account, not SYSTEM. The BERNS-WINDOWS$ is the account the process was being run under (launched via psexec -i -s) and is indeed the system account. I ran icacls just to display the current ACL on the directory (which does not include the system account for the purpose o

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Bryan Berns
> You just have to enable the SeBackupName and SeRestoreName privs. > Try in Cygwin. It does that automatically. > > For cases where you need to stick to the Windows ACLs, use noacl > mounts. Understood --- I can probably set SeBackupPrivilege / SeRestorePrivilege as 'RequiredPriveleges' for the

Re: slow startup after upgrade

2015-02-26 Thread Eric Blake
On 02/26/2015 01:24 PM, Corinna Vinschen wrote: >>> Fixes are in snapshots, as well as test releases (currently 1.7.35-0.4) >>> which can be installed with setup*.exe. >> >> Hmmm... https://cygwin.com/faq-nochunks.html#faq.setup.snapshots says: >> >> You cannot use Cygwin Setup to install a snapsho

Re: Why does CYGWIN double the backslash in execvp()?

2015-02-26 Thread A L
Hi, Yesterday I asked about the double slash, but my question has got no attention (despite some other activity on the list). I deem the behavior as a bug. To make things more evident (that it's a bug) one can replace "DIR" with "ECHO" in the code I posted, and compare the outputs with and withou

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Corinna Vinschen
On Feb 26 15:51, Bryan Berns wrote: > > That's not really a goal. The SYSTEM permissions are kind of useless > > anyway, given that SYSTEM has permissions to read and write all files > > anyway. I don't see that a rule to add SYSTEM permissions to all files > > accomplishes anything which isn't a

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Achim Gratz
Bryan Berns writes: > I don't think this is true; see below when running as the system account: That's an administrator account, not SYSTEM. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Sy

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Bryan Berns
> That's not really a goal. The SYSTEM permissions are kind of useless > anyway, given that SYSTEM has permissions to read and write all files > anyway. I don't see that a rule to add SYSTEM permissions to all files > accomplishes anything which isn't already available anyway. I don't think this

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Achim Gratz
Corinna Vinschen writes: > That's not really a goal. The SYSTEM permissions are kind of useless > anyway, given that SYSTEM has permissions to read and write all files > anyway. I don't see that a rule to add SYSTEM permissions to all files > accomplishes anything which isn't already available an

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Corinna Vinschen
On Feb 26 20:47, Achim Gratz wrote: > Bryan Berns writes: > > I honestly haven't read up exactly how Cygwin interprets NTFS > > ACL/ACEs, but I remember seeing on the mailing list that a change was > > made in 1.7.35 was made to permission handling. It is preferable in > > my organization that the

Re: slow startup after upgrade

2015-02-26 Thread Corinna Vinschen
On Feb 26 12:04, Andrew DeFaria wrote: > On 2/25/2015 4:12 PM, Yaakov Selkowitz wrote: > >On Wed, 2015-02-25 at 15:52 -0800, Andrew DeFaria wrote: > >>Can somebody summarize where we're at here. I've been noticing all this > >>email about slow startup and I'm excited by the inclusion of domain > >>

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Andrey Repin
Greetings, Bryan Berns! > I honestly haven't read up exactly how Cygwin interprets NTFS > ACL/ACEs, but I remember seeing on the mailing list that a change was > made in 1.7.35 was made to permission handling. It is preferable in > my organization that the SYSTEM account always have full control

Re: slow startup after upgrade

2015-02-26 Thread Andrew DeFaria
On 2/25/2015 4:12 PM, Yaakov Selkowitz wrote: On Wed, 2015-02-25 at 15:52 -0800, Andrew DeFaria wrote: Can somebody summarize where we're at here. I've been noticing all this email about slow startup and I'm excited by the inclusion of domain accounts using /etc/nsswitch.conf, etc. I downloaded

Re: Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Achim Gratz
Bryan Berns writes: > I honestly haven't read up exactly how Cygwin interprets NTFS > ACL/ACEs, but I remember seeing on the mailing list that a change was > made in 1.7.35 was made to permission handling. It is preferable in > my organization that the SYSTEM account always have full control the >

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.35-0.3

2015-02-26 Thread Denis Excoffier
On 2015-02-26 17:03, Corinna Vinschen wrote: > > On Feb 20 09:25, Achim Gratz wrote: >> Another thing I noticed is that pasting into an SSH connection often >> leaves the last few characters off and you need to hit another key to >> get them displayed. Not sure if this is related, but I seem to r

Too Many Permissions Stripped In 1.7.35?

2015-02-26 Thread Bryan Berns
I honestly haven't read up exactly how Cygwin interprets NTFS ACL/ACEs, but I remember seeing on the mailing list that a change was made in 1.7.35 was made to permission handling. It is preferable in my organization that the SYSTEM account always have full control the local file system. When usin

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.35-0.3

2015-02-26 Thread Corinna Vinschen
On Feb 26 17:19, Achim Gratz wrote: > Corinna Vinschen writes: > > On Feb 20 09:25, Achim Gratz wrote: > >> Another thing I noticed is that pasting into an SSH connection often > >> leaves the last few characters off and you need to hit another key to > >> get them displayed. Not sure if this is r

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.35-0.3

2015-02-26 Thread Achim Gratz
Corinna Vinschen writes: > On Feb 20 09:25, Achim Gratz wrote: >> Another thing I noticed is that pasting into an SSH connection often >> leaves the last few characters off and you need to hit another key to >> get them displayed. Not sure if this is related, but I seem to remember >> that this ha

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.35-0.3

2015-02-26 Thread Corinna Vinschen
On Feb 20 09:25, Achim Gratz wrote: > Another thing I noticed is that pasting into an SSH connection often > leaves the last few characters off and you need to hit another key to > get them displayed. Not sure if this is related, but I seem to remember > that this had been reported before and may

Re: Clearing O_NONBLOCK from a pipe may lose data

2015-02-26 Thread Lasse Collin
On 2015-02-24 Corinna Vinschen wrote: > On Feb 24 16:16, Lasse Collin wrote: > > I'm going to release xz 5.2.1 in a day or two. Should that release > > have a workaround for this Cygwin bug? The workaround would avoid > > using O_NONBLOCK on stdout. It adds a race condition to signal > > handling i

Re: slow startup after upgrade

2015-02-26 Thread Corinna Vinschen
On Feb 25 22:20, Roger Orr wrote: > Good work -- at least in my environment ;-) > > 20150225 DLL: > mkgroup 0.63s > mkpasswd 0.289s > > compared to > > 20150220 DLL: > mkgroup 45.8s > mkpasswd: 4572.7s > > Output is > mkgroup: 53kb, 681 lines > mkpasswd: 132kb, 1081 lines. > > And the output