Re: FAQ #4.43

2012-02-21 Thread Andrey Repin
Greetings, Michel Bardiaux! > AVAST! (www.avast.com). But no need to desinstall; just disable > permanently the FILESYSTEM and BEHAVIOR realtime shields. The others > (web, p2p, mail, IM) do not seem to interfere with cygwin. I think, behavioral scan is what causing issues. Disabling FILESYSTEM m

Ctrl+Arrows keys in .inputrc to move a word forward/backward by default

2012-02-21 Thread ArcFi
I've been using cygwin for last 2-3 years so I've already configured my environment. Recently made a clean installation on a new server and found that keys to move a word forward/backward (Ctrl+Right/Left) do not work by default. This shortcut works out of the box in many popular linux distribution

Re: pnmtopng reports: no memory to create string

2012-02-21 Thread Yaakov (Cygwin/X)
On Tue, 2012-02-14 at 11:53 -0500, David Dombrowsky wrote: > This same error appears on two separate systems with mostly > different configurations, so I'm hoping it's not a local environment > thing. > > Running `pnmtopng` from the netpbm package results in an error message. > > $ pnmtopng > p

Re: PROGRAMFILES variable is not set during openssh session

2012-02-21 Thread ArcFi
Sun, 12 Feb 2012 23:21:52 +0100, Cyrille Lefevre: > around february 19 2011, there was a discussion about to limit ssh > environment variables not including some windows ones ! > > since then, I use the attached script in /etc/profile.d to set the > missing ones at connection time... > you may comm

Re: sed 4.2.1-1 locks files on windows

2012-02-21 Thread L Anderson
Corinna Vinschen wrote: On Feb 21 11:58, cygwin@munub.e4ward.com wrote: see here: http://stackoverflow.com/questions/9368783/cygwin-bash-sed-locks-my-files When I change files in cygwin bash with the sed command, the file gets locked. Reproduce: Open cmd and cd to non-user directory

Re: mintty window handle

2012-02-21 Thread Andrey Repin
Greetings, Kevin Schnitzius! >>I would like to be able change the icon dynamically on my mintty >>windows.  However, old trick (google KB125103) for finding console >>window handles won't work anymore as it relies on the windows console >>window.  I have verified that WM_SETICON works with the c

Re: cygrunsrv doesn't stop service during reboot

2012-02-21 Thread Frank Fesevur
2012/2/21 Corinna Vinschen: > I tested that now and found that the preshutdown control message was > never sent to cygrunsrv's service handler function. > > [snip] > > I just uploaded a new cygrunsrv version with this fix. Whow!!! That is a quick fix. Thanks a lot. Very much appreciated! I will u

Re: vim - patch 7.3.358 broke double click and copy/paste functionality

2012-02-21 Thread Linda Walsh
P. Szmytka wrote: After updating to vim-7.3.393-1 paste using middle mouse button stopped working for me. I narrowed it down to patch 7.3.358 to be the culprit. --- Are you talking about vim or gvim? I've never had the mouse work in vim, (which doesn't mean it couldn't have been configured

Re: mintty window handle

2012-02-21 Thread Kevin Schnitzius
>From: Kevin Schnitzius > >I would like to be able change the icon dynamically on my mintty >windows.  However, old trick (google KB125103) for finding console >window handles won't work anymore as it relies on the windows console >window.  I have verified that WM_SETICON works with the correc

Re: Environment passing bug?

2012-02-21 Thread Eric Blake
On 02/21/2012 12:19 PM, Charles Wilson wrote: > > == xp-64 > $ printf "'%s'\n'%s'\n'%s'\n'%s'\n'%s'\n'%s'\n" "$TEMP" "$TMP" "$TMPDIR" Side note: You know, POSIX requires (and cygwin supports) a shorthand form of this: printf "'%s'\n" "$TEMP" "TMP" "$TMPDIR" That is, if you provid

Re: Environment passing bug?

2012-02-21 Thread Corinna Vinschen
On Feb 21 14:19, Charles Wilson wrote: > $ ./envprint.exe | grep -i temp > 'TEMP=C:\cygwin\tmp' > 'temp=C:\Temp' > 'tmp=C:\Temp' > == xp-64 > > ...and the only mystery now is how my $ATWORK stuff should deal with the > fact that there are TWO different copies of the "same" variable i

Re: Environment passing bug?

2012-02-21 Thread Charles Wilson
On 2/21/2012 4:50 AM, Corinna Vinschen wrote: > On Feb 20 18:06, Charles Wilson wrote: >> I've observed different behavior with cygwin-1.7.0 on 64bit XP, and >> 32bit XP (I'll check Vista-32 and W7-64 later tonight). Using the >> following attached win32 program: >> >> $ i686-pc-mingw32-gcc -o env

[ANNOUNCEMENT] Updated: cygrunsrv-1.36-1

2012-02-21 Thread Corinna Vinschen
I've updated the cygrunsrv package to 1.36-1. This is a bugfix release. It fixes the problem that the -O/--preshutdown option has no effect on Windows Vista and later. To update your installation, click on the "Install Cygwin now" link on the http://cygwin.com/ web page. This downloads setup.e

Re: cygrunsrv doesn't stop service during reboot

2012-02-21 Thread Corinna Vinschen
On Feb 21 10:24, Corinna Vinschen wrote: > On Feb 21 09:32, Frank Fesevur wrote: > > 2012/2/20 Corinna Vinschen: > > > Did you check your log?  Do you see any of these messages?  If not, > > > I assume that the shutdown kills the service process so fast that it > > > has no chance for the cleanup.

Re: CYGWIN Subversion >= 1.7.2; problem to use protocol https.

2012-02-21 Thread David Rothenberger
On 2/21/2012 1:40 AM, denis.chanco...@free.fr wrote: > I'm not sure if I must send this e-mail to you or at the mailing list > cygwin-apps AT cygwin.com ... cygwin AT cygwin.com is the correct place. I've sending this response there. Please follow up on that list only (no need to CC me also). >

Re: shared_info::init_obcaseinsensitive implemented incorrectly

2012-02-21 Thread Corinna Vinschen
On Feb 21 12:55, Corinna Vinschen wrote: > > > Please, don't http://cygwin.com/acronyms/#TOFU > > > On Feb 21 11:34, Nick Lowe wrote: > > I really should subscribe to get individual messages and not just the > > digest so that I can reply properly. Sorry! > > > > > Just call NtOpenDirectoryObj

Re: STC for libapr1 failure

2012-02-21 Thread Corinna Vinschen
On Feb 21 09:58, Corinna Vinschen wrote: > On Feb 20 19:29, Yaakov (Cygwin/X) wrote: > > On Mon, 2012-02-20 at 15:17 +0100, Corinna Vinschen wrote: > > > As always, thanks for the testcase. I think I found the problem. It's > > > hard to explain if you don;t know how the code works, but it boils

Re: SSH looking for identity file in /.ssh

2012-02-21 Thread Corinna Vinschen
On Feb 21 08:53, _w_ wrote: > > I just installed Cygwin 1.7.10 and created keys in ~/.ssh. When I ssh to > another server, it looks for identity files in /.ssh rather than ~/.ssh. > > I checked /etc/ssh_config and everything is commented out (as it was in my > old Cygwin installation). I tried

SSH looking for identity file in /.ssh

2012-02-21 Thread _w_
I just installed Cygwin 1.7.10 and created keys in ~/.ssh. When I ssh to another server, it looks for identity files in /.ssh rather than ~/.ssh. I checked /etc/ssh_config and everything is commented out (as it was in my old Cygwin installation). I tried adding "IdentityFile ~/.ssh/id_rsa" but

Re: Fork/resource unavailable - SSH/Citrix

2012-02-21 Thread Corinna Vinschen
On Feb 21 14:53, Adam Thompson wrote: > Dear all, > > About 3.5 years ago, I was looking into why a lot of Citrix > Presentation Servers were seeing their SSH services fall over. > > I did actually discover the issue in the end, but neglected to post back here. > > I found that the issue was the

Re: FAQ #4.43

2012-02-21 Thread Corinna Vinschen
On Feb 21 14:24, Michel Bardiaux wrote: > You can add to the BLODA list: > > AVAST! (www.avast.com). But no need to desinstall; just disable > permanently the FILESYSTEM and BEHAVIOR realtime shields. The others > (web, p2p, mail, IM) do not seem to interfere with cygwin. Thanks, I added that to

Re: Unable to install coreutils 8.15-1(?) - error in coreutils.sh exit code 127

2012-02-21 Thread Andrew DeFaria
On 02/21/2012 05:18 AM, Michel Bardiaux wrote: On 2/20/2012 12:35 PM, Eric Blake wrote: That link error is typically a sign of cygwin1.dll being too old compared to what coreutils 8.15 is expecting. Are you sure your cygwin1.dll comes from 1.7.10, and that it wasn't in-use when you upgraded in

RE: svn2cl (subversion-tools 1.7.3-1) fails to load svn2cl.xsl

2012-02-21 Thread Thrall, Bryan
David Rothenberger wrote on 2012-02-20: > subverison-tools-1.7.3-2 is available now with that patch restored. Thanks! I can confirm that fixes the problem on my end :) -- Bryan Thrall Principal Software Engineer FlightSafety International bryan.thr...@flightsafety.com -- Problem reports:

Fork/resource unavailable - SSH/Citrix

2012-02-21 Thread Adam Thompson
Dear all, About 3.5 years ago, I was looking into why a lot of Citrix Presentation Servers were seeing their SSH services fall over. I did actually discover the issue in the end, but neglected to post back here. I found that the issue was the Citrix API hooking, which messes with the fork() call

Re: Unable to install coreutils 8.15-1(?) - error in coreutils.sh exit code 127

2012-02-21 Thread marco atzeri
On 2/21/2012 2:18 PM, Michel Bardiaux wrote: I suppose we'll never know what began the problem. Still, cygcheck should NOT have reported 1.7.10-1 as OK when it was not... cygcheck verifies only that all the files reported on /etc/setup/cygwin.lst.gz exist. It have no way to detect a wrong ve

FAQ #4.43

2012-02-21 Thread Michel Bardiaux
You can add to the BLODA list: AVAST! (www.avast.com). But no need to desinstall; just disable permanently the FILESYSTEM and BEHAVIOR realtime shields. The others (web, p2p, mail, IM) do not seem to interfere with cygwin. Michel Bardiaux -- Problem reports: http://cygwin.com/problems.html

RE: Unable to install coreutils 8.15-1(?) - error in coreutils.sh exit code 127

2012-02-21 Thread Michel Bardiaux
> On 2/20/2012 12:35 PM, Eric Blake wrote: >> That link error is typically a sign of cygwin1.dll being too old >> compared to what coreutils 8.15 is expecting. Are you sure your >> cygwin1.dll comes from 1.7.10, and that it wasn't in-use when you >> upgraded in such a manner that you are still

Re: Issues with stdio.h

2012-02-21 Thread Earnie Boyd
And FWIW, MinGW's native gcc also doesn't include the GCC specific headers in the /mingw/include directory. -- Earnie -- https://sites.google.com/site/earnieboyd -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://

Re: shared_info::init_obcaseinsensitive implemented incorrectly

2012-02-21 Thread Corinna Vinschen
Please, don't http://cygwin.com/acronyms/#TOFU On Feb 21 11:34, Nick Lowe wrote: > I really should subscribe to get individual messages and not just the > digest so that I can reply properly. Sorry! > > > Just call NtOpenDirectoryObject on \\SYSTEMROOT, rather than > > NtOpenSymbolicLinkObjec

Re: sed 4.2.1-1 locks files on windows

2012-02-21 Thread Corinna Vinschen
On Feb 21 11:58, cygwin@munub.e4ward.com wrote: > see here: > http://stackoverflow.com/questions/9368783/cygwin-bash-sed-locks-my-files > > When I change files in cygwin bash with the sed command, the file gets locked. > > Reproduce: > > Open cmd and cd to non-user directory (f.e. temp)

Re: shared_info::init_obcaseinsensitive implemented incorrectly

2012-02-21 Thread Nick Lowe
I really should subscribe to get individual messages and not just the digest so that I can reply properly. Sorry! > Just call NtOpenDirectoryObject on \\SYSTEMROOT, rather than > NtOpenSymbolicLinkObject. I would have thought that NtOpenSymbolicLinkObject would have been the more correct approac

Re: shared_info::init_obcaseinsensitive implemented incorrectly

2012-02-21 Thread Corinna Vinschen
On Feb 21 10:26, Nick Lowe wrote: > I have just tested this and it works. It is faster, simpler and has > less overheads than querying the registry for a potentially stale > value. > > Just call NtOpenSymbolicLinkObject for \SYSTEMROOT with a > DesiredAccess of 0 and no attributes flags in the OBJ

sed 4.2.1-1 locks files on windows

2012-02-21 Thread cygwin.com
see here: http://stackoverflow.com/questions/9368783/cygwin-bash-sed-locks-my-files When I change files in cygwin bash with the sed command, the file gets locked. Reproduce: Open cmd and cd to non-user directory (f.e. temp) echo aaa > test.txt Open in texteditor, add line, try to sa

Re: shared_info::init_obcaseinsensitive implemented incorrectly

2012-02-21 Thread Nick Lowe
I have just tested this and it works. It is faster, simpler and has less overheads than querying the registry for a potentially stale value. Just call NtOpenSymbolicLinkObject for \SYSTEMROOT with a DesiredAccess of 0 and no attributes flags in the OBJECT_ATTRIBUTES structure. This will fail with

Re: shared_info::init_obcaseinsensitive implemented incorrectly

2012-02-21 Thread Nick Lowe
OK, fair enough, it is an edge case... I am a stickler for correctness! :P Looking at previous threads though actually, I notice that the following is documented by Microsoft regarding the obcaseinsensitive value: "If this setting is enabled, case insensitivity is enforced for all directory objec

Re: Environment passing bug?

2012-02-21 Thread Corinna Vinschen
On Feb 20 18:06, Charles Wilson wrote: > I've observed different behavior with cygwin-1.7.0 on 64bit XP, and > 32bit XP (I'll check Vista-32 and W7-64 later tonight). Using the > following attached win32 program: > > $ i686-pc-mingw32-gcc -o envprint envprint.c > > == xp-64 > $ unam

Re: shared_info::init_obcaseinsensitive implemented incorrectly

2012-02-21 Thread Corinna Vinschen
On Feb 21 08:59, Nick Lowe wrote: > Dear Cygwin Developers, > > shared_info::init_obcaseinsensitive in shared.cc has, in my opinion, > been implemented incorrectly. > > The value of the obcaseinsensitive value in the registry only > represents how the object manager will be on next reboot and not

Re: cygrunsrv doesn't stop service during reboot

2012-02-21 Thread Corinna Vinschen
On Feb 21 09:32, Frank Fesevur wrote: > 2012/2/20 Corinna Vinschen: > > Did you check your log?  Do you see any of these messages?  If not, > > I assume that the shutdown kills the service process so fast that it > > has no chance for the cleanup.  Which is kind of weird in case of > > preshutdown,

Re: shared_info::init_obcaseinsensitive implemented incorrectly

2012-02-21 Thread Nick Lowe
Grr, I hit send before finishing writing this. I meant to write: "Then, check for existence of the uppercase or lowercase form of the path (choose appropriate casing based on the existing casing) with NtQueryAttributesFile ensuring, obviously, that the OBJ_CASE_INSENSITIVE flag is not set." Cheer

shared_info::init_obcaseinsensitive implemented incorrectly

2012-02-21 Thread Nick Lowe
Dear Cygwin Developers, shared_info::init_obcaseinsensitive in shared.cc has, in my opinion, been implemented incorrectly. The value of the obcaseinsensitive value in the registry only represents how the object manager will be on next reboot and not its present state. Cygwin uses it as if it repr

Re: STC for libapr1 failure

2012-02-21 Thread Corinna Vinschen
On Feb 20 19:29, Yaakov (Cygwin/X) wrote: > On Mon, 2012-02-20 at 15:17 +0100, Corinna Vinschen wrote: > > As always, thanks for the testcase. I think I found the problem. It's > > hard to explain if you don;t know how the code works, but it boils down > > to the fact that my last round of patche

Re: cygrunsrv doesn't stop service during reboot

2012-02-21 Thread Frank Fesevur
2012/2/20 Corinna Vinschen: > Something else occured to me.  You didn't specify a pidfile on the > cygrunsrv -I command line, so rsyncd will be run by cygrunsrv without > a pidfile.  So, where is the pidfile coming from?  Does rsync create > it by itself in daemon mode?  I just tried this and the a

Re: cygrunsrv doesn't stop service during reboot

2012-02-21 Thread Frank Fesevur
2012/2/20 Corinna Vinschen: > Did you check your log?  Do you see any of these messages?  If not, > I assume that the shutdown kills the service process so fast that it > has no chance for the cleanup.  Which is kind of weird in case of > preshutdown, given that you're supposed to have 3 minutes, a