Re: Do we still have an rxvt maintainer?

2005-03-23 Thread Christopher Faylor
On Tue, Jan 18, 2005 at 04:43:34PM -0800, Joshua Daniel Franklin wrote:
On Tue, 18 Jan 2005 08:54:37 -0800, Steve O wrote:
 I haven't been keeping up with the cygwin list.  I get an occasional
 rxvt related email and try to help out, but otherwise I've been happy
 with how rxvt works and haven't paid much attention to it.
 
 What's up?

We've also trying to get Cygwin FHS compliant, which just means
moving docs to /usr/share/doc instead of /usr/doc/, man pages to
/usr/share/man, and texinfo to /usr/share/info.

Steve O,
You asked what's up a couple of months ago.  Is there any hope that you
could release a new version of rxvt with a readable man page, installed
in the right place?  I don't know if there are any other issues that need
to be addressed with rxvt but the man page issue is sort of embarassing.

cgf


X11 wm that is also a WinXP virtual desktop manager?

2005-03-23 Thread Trebor Sreyb
I'm curious if there are any cygwin X11 window
managers that also work as a true 'virtual desktop
manager' in Windows 2000/XP/etc.

This model would maintain separate MS-Windows desktops
containing native windows applications and taskbar
icons. It is similar to, for example, separate
workspaces in windowmaker, but it applies to the
Windows XP desktop rather than X apps.

This type of software exists (MS has their own
freebee, in fact). But it appears the X11 Window
managers that have been ported to cygwin only create
an X11 desktop that manage X applications only.

thanks,
-Bob
 Andover, MA



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


Re: X11 wm that is also a WinXP virtual desktop manager?

2005-03-23 Thread Alexander Gottwald
On Wed, 23 Mar 2005, Trebor Sreyb wrote:

 I'm curious if there are any cygwin X11 window
 managers that also work as a true 'virtual desktop
 manager' in Windows 2000/XP/etc.
 
 This model would maintain separate MS-Windows desktops
 containing native windows applications and taskbar
 icons. It is similar to, for example, separate
 workspaces in windowmaker, but it applies to the
 Windows XP desktop rather than X apps.
 
 This type of software exists (MS has their own
 freebee, in fact). But it appears the X11 Window
 managers that have been ported to cygwin only create
 an X11 desktop that manage X applications only.

To my knowledge ther is only one windowmager which handles windows 
as native windows and this window manager does has no virtual desktop
support.

bye
ago 
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


fixing XTerm colors

2005-03-23 Thread Michael Wardle
Hi
It seems that startx starts an XTerm with a yellow foreground and a 
black background, but subsequent invocations of XTerm will use the 
user's settings.

To me this presents two problems:
- subsequent XTerms look different from the initial one
- user's settings are disrespected by the initial one
The way I think this problem can be solved is:
1. specify the default Cygwin colors etc in the X resources file
   /etc/X11/xinit/.Xresources
2. remove the customizations from
   /etc/X11/xinit/xinitrc
To resources corresponding to the command line parameters seen in 
xinitrc are:
xterm*saveLines: 1000
xterm*rightScrollBar: true
xterm*pointerColor: red
xterm*foreground: yellow
xterm*background: black

You would just add these lines to /etc/X11/xinit/.Xresources and invoke 
xterm as:
exec xterm

or (if the bash -l is absolutely necessary):
exec xterm -e /bin/bash -l
instead of:
exec xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e 
/usr/bin/bash -l

There is a more comprehensive list of options and their corresponding 
resources in the xterm(1) manual page.

The user can then set his/her own preferences in ~/.Xresources (as I 
intend to, as I am quite happy with black on white).

I hope a future release of Cygwin/X will include these changes.
Thanks


winsup/cygwin ChangeLog

2005-03-23 Thread cgf
CVSROOT:/cvs/uberbaum
Module name:winsup
Changes by: [EMAIL PROTECTED]   2005-03-23 17:43:54

Modified files:
cygwin : ChangeLog 

Log message:
fix comment

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaumr1=1.2789r2=1.2790



problem remove file from another user

2005-03-23 Thread cygwin.20.job
Hi folks 

I try to remove the file outlook as user fjb but the system complains that I 
have no permission to remove the file. But as far as I see the user fjb has 
enough right to remove the file.

Please how can I remove the file.


Thanks Franz


[EMAIL PROTECTED]:/usr/local/bin Mon Mar 14  14:19:23 556 getfacl outlook .
# file: outlook
# owner: Administratoren
# group: SYSTEM
user::rwx
group::rwx
group:Benutzer:rwx
mask:rwx
other:-w-

# file: .
# owner: F.Braunbeck
# group: Benutzer
user::rwx
group::rwx
group:root:rwx
group:SYSTEM:rwx
mask:rwx
other:-w-
default:user::rwx
default:group:root:rwx
default:group:SYSTEM:rwx
default:group:Benutzer:rwx
default:mask:rwx
[EMAIL PROTECTED]:/usr/local/bin Mon Mar 14  14:19:26 557 rm outlook
rm: outlook entfernen? y
rm: Entfernen (unlink) von outlook nicht moglich: Permission denied

[EMAIL PROTECTED]:/usr/local/bin Mon Mar 14  14:19:44 558 groups Kein root 
Administratoren Benutzer



IMPORTANT
There is no way to send a email direct to this mail address. 
Every Mail which is not send to cygwin@cygwin.com is automatically deleted.

Regards 

Franz

__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



Re: problem remove file from another user

2005-03-23 Thread Corinna Vinschen
On Mar 23 09:11, [EMAIL PROTECTED] wrote:
 Hi folks 
 
 I try to remove the file outlook as user fjb but the system complains that I 
 have no permission to remove the file. But as far as I see the user fjb has 
 enough right to remove the file.
 
 Please how can I remove the file.

Do you have enough permissions on the parent directories?  Otherwise,
does switching of traverse checking[1] help?


Corinna

[1] $ CYGWIN=notraverse rm outlook

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:cygwin@cygwin.com
Red Hat, Inc.

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



[ANNOUNCEMENT] Updated: openssl-0.9.7f-1, openssl-devel-0.9.7f-1

2005-03-23 Thread Corinna Vinschen
I've updated the version of OpenSSL to 0.9.7f-1.  This also includes the
openssl-devel package.

This is a upstream bug fix update.  The Cygwin version has a minor tweak
applied which was necessary to resolve a build conflict.  The patch is
already sent upstream.


Official release message:
===

  OpenSSL version 0.9.7f released
  ==

  OpenSSL - The Open Source toolkit for SSL/TLS
  http://www.openssl.org/

  The OpenSSL project team is pleased to announce the release of
  version 0.9.7f of our open source toolkit for SSL/TLS.  This new
  OpenSSL version is a bugfix release and incorporates changes and
  bugfixes to the toolkit (for a complete list see
  http://www.openssl.org/source/exp/CHANGES ).

  The most significant changes are:

o Several compilation issues fixed.
o Many memory allocation failure checks added.
o Improved comparison of X509 Name type.
o Mandatory basic checks on certificates.
o Performance improvements.

  We consider OpenSSL 0.9.7f to be the best version of OpenSSL available
  and we strongly recommend that users of older versions upgrade as
  soon as possible.  OpenSSL 0.9.7f is available for download via HTTP
  and FTP from the following master locations (you can find the various
  FTP mirrors under http://www.openssl.org/source/mirror.html):

o http://www.openssl.org/source/
o ftp://ftp.openssl.org/source/

  The distribution file name is:

o openssl-0.9.7f.tar.gz
  MD5 checksum: b2d37d7eb8a5a5040d834105d5ae1a50

  The checksums were calculated using the following command:

openssl md5  openssl-0.9.7f.tar.gz


  Yours,
  The OpenSSL Project Team...

Mark J. Cox Ben Laurie  Andy Polyakov
Ralf S. Engelschall Richard Levitte Geoff Thorpe
Dr. Stephen Henson  Bodo M?ller
Lutz J?nickeUlf M?ller
Nils Larsch
===

To update your installation, click on the Install Cygwin now link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.


*** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the List-Unsubscribe:  tag in the email header of this message.
Send email to the address specified there.  It will be in the format:


[EMAIL PROTECTED]

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

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at the above URL.

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:cygwin@cygwin.com
Red Hat, Inc.


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



possibly incorrect keybord layout

2005-03-23 Thread YRassokhin
  Hi,

I have installed Cygwin on English-language version of Windows 2000
Terminal.
There 2 keybord layouts installed in Windows: US Eenglish  Russian.
I've faced the following problem: In Midnight Commander and Vim kwybord
layout seems to be incorrect.
For instance, cursor can't move in Vim; frames of mc panels are
consisted of question marks; functional keys don't work properly in mc
(instead, their codes are printed when hit them).

What should I do to resolve the problem?
 
Thank you.

 
Yuri Rassokhin.


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



does rxvt support cut and paste?

2005-03-23 Thread Daniel B.
Does the rxvt application support cutting and pasting?
If so, how (what keystrokes)?
If not, does anyone know why not?
Thanks,
Daniel

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


RE: does rxvt support cut and paste?

2005-03-23 Thread Reid Thompson
Daniel B. wrote:
 Does the rxvt application support cutting and pasting? If so, how
 (what keystrokes)? If not, does anyone know why not?
 
 Thanks,
 Daniel

highlight text, click in window to paste to, click middle mouse button(
wheel).

reid

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



Re: ifconfig

2005-03-23 Thread Jay Guerette
This page: http://cygwin.com/packages/

Allows you to search for strings in packages, though the results need
to be researched a bit. For example a search for 'ifconfig' turns up
ZSH, and if you follow the link it shows there is a function called
'ifconfig' in ZSH.

 Where can I find the pre-existing/bundled Cygwin
 package that has the tool ifconfig?

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



Cygwin CVS Can't check out or update remote shell

2005-03-23 Thread Justin Driskell
I have Cygwin DLL v1.5.13-1.  I install all ssh and cvs files.  Cygwin works 
fine when I am logged on to the server but When I try to check out or update a 
module form remote desktop from either cygwin bash or Wincvs it does not work 
and I get the following error.  C:\cygwin\bin\ssh.exe (1400): ***could not 
load user 32, win32 error 0.

thanks,
justin



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



Cygwin CVS Can't check out or update remote shell

2005-03-23 Thread Justin Driskell
I have Cygwin DLL v1.5.13-1.  I install all ssh and cvs files.  Cygwin works 
fine when I am logged on to the server but When I try to check out or update a 
module form remote desktop from either cygwin bash or Wincvs it does not work 
and I get the following error.  C:\cygwin\bin\ssh.exe (1400): ***could not 
load user 32, win32 error 0.

thanks,
justin



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



Cygwin CVS Can't check out or update remote shell

2005-03-23 Thread Justin Driskell
I have Cygwin DLL v1.5.13-1.  I install all ssh and cvs files.  Cygwin works 
fine when I am logged on to the server but When I try to check out or update a 
module form remote desktop from either cygwin bash or Wincvs it does not work 
and I get the following error.  C:\cygwin\bin\ssh.exe (1400): ***could not 
load user 32, win32 error 0.

thanks,
justin
 

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



ssh-agent people (and others) please try latest snapshot

2005-03-23 Thread Christopher Faylor
The latest (2005-03-23 as of this writing) snapshot has some more
improvements from Corinna wrt unix domain sockets.

We're coming close to a 1.5.14 release so I would appreciate it if
people would try the latest snapshot and report their successes or
failures here.

http://cygwin.com/snapshots/

cgf

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



Re: ssh-agent people (and others) please try latest snapshot

2005-03-23 Thread Brian Bruns
On Wednesday, March 23, 2005 1:19 PM [EST], Christopher Faylor wrote:

 The latest (2005-03-23 as of this writing) snapshot has some more
 improvements from Corinna wrt unix domain sockets.

 We're coming close to a 1.5.14 release so I would appreciate it if
 people would try the latest snapshot and report their successes or
 failures here.

 http://cygwin.com/snapshots/

 cgf

With the 2005-03-23 snapshot, I unfortunately can no longer start
cygwin or any program that depends on the Cygwin1.dll - the program
uses 99% of the cpu, and must be killed with the task manager.  This
is a Win2k SP4 box with NTFS filesystem and all the latest patches on
a Celeron 766.  -22 doesn't exhibit this problem.


-- 
Brian Bruns
The Summit Open Source Development Group
http://www.sosdg.org  /  http://www.ahbl.org


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



Re: ssh-agent people (and others) please try latest snapshot

2005-03-23 Thread Christopher Faylor
On Wed, Mar 23, 2005 at 01:53:05PM -0500, Brian Bruns wrote:
On Wednesday, March 23, 2005 1:19 PM [EST], Christopher Faylor wrote:

 The latest (2005-03-23 as of this writing) snapshot has some more
 improvements from Corinna wrt unix domain sockets.

 We're coming close to a 1.5.14 release so I would appreciate it if
 people would try the latest snapshot and report their successes or
 failures here.

 http://cygwin.com/snapshots/

With the 2005-03-23 snapshot, I unfortunately can no longer start
cygwin or any program that depends on the Cygwin1.dll - the program
uses 99% of the cpu, and must be killed with the task manager.  This
is a Win2k SP4 box with NTFS filesystem and all the latest patches on
a Celeron 766.  -22 doesn't exhibit this problem.

Oops.  Sorry.  I'll fix this ASAP.

cgf

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



installing identical cygwin configurations on multiple systems

2005-03-23 Thread Greg Vaidman
haven't been able to find this in the docs or faq...
is there a way to prepare/save a list of packages for cygwin setup to use, 
so that I get the same set of packages on different installs.  i want to put 
cygwin on a number of systems, and I usually install a number of packages 
beyond the base, but i don't want to go through and manually pick them each 
time, for both reliability/consistency and ease-of-use reasons.

thanks.

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


Re: Perl crash when using Net::FTP or LWP::UserAgent with recent CVS

2005-03-23 Thread Igor Pechtchanski
On Fri, 18 Mar 2005, Igor Pechtchanski wrote:

 On Fri, 18 Mar 2005, Igor Pechtchanski wrote:

  On Fri, 18 Mar 2005, Yitzchak Scott-Thoennes wrote:
 
   On Fri, Mar 18, 2005 at 03:32:24PM -0500, Christopher Faylor wrote:
On Fri, Mar 18, 2005 at 02:51:52PM -0500, Joe Buehler wrote:
In case this is not already known, the current CVS has a serious
problem -- attempts to rsh or ssh in to a machine running a cygwin1.dll
compiled from it fail with an error message regarding a failed setgid()
call.
   
WJFFM.
  
   FWIW I had a lot of trouble with the 20050316 snapshot; perl coredumping
   when using Net::POP3 and lots of messages like:
   7 [main] perl 7824 fork_parent: child 2452 died waiting for longjmp 
   before initialization
  
   I'll report in more detail on Sunday unless there's a newer snapshot that
   doesn't have these problems.
 
  Actually, I'm now getting a coredump when trying to use both Net::FTP and
  LWP::UserAgent from perl.  The crash is in
 
  cygwin_getprotobynumber
  /usr/src/cygwin-cvs/src/winsup/cygwin/net.cc:548
 
  according to addr2line.  I'll try investigating further.
  Igor

 Actually, here's a full stack trace from gdb (when running /bin/cpan):

 #0  0x6104bfb6 in cygwin_getprotobynumber (number=17236) at 
 /usr/src/cygwin-cvs/src/winsup/cygwin/net.cc:548
 #1  0x6107589f in _sigfe () at 
 /usr/src/cygwin-cvs/src/winsup/cygwin/cygserver.h:82
 #2  0x0022ee18 in ?? ()
 #3  0x100ace0c in cygperl5_8!Perl_free_tmps () from /usr/bin/cygperl5_8.dll
 #4  0x10071e19 in cygperl5_8!Perl_runops_standard () from 
 /usr/bin/cygperl5_8.dll
 #5  0x100076f5 in perl_run () from /usr/bin/cygperl5_8.dll
 #6  0x004011d6 in cygcrypt-0!crypt ()
 #7  0x61005a78 in dll_crt0_1 () at 
 /usr/src/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:861
 #8  0x61005b93 in _dll_crt0 () at 
 /usr/src/cygwin-cvs/src/winsup/cygwin/dcrt0.cc:915
 #9  0x in ?? () from

 Frames #0 looks bogus, and #1 seems to have a wrong file/line number.
 Some sort of stack corruption?

 Unfortunately, I don't have a debug build of Perl (and no time right now
 to create one).  Any takers?
   Igor

Has anyone been able to reproduce this?  I get the same crash with any
snapshot later than 20050311 (the 20050311 snapshot itself is fine).  I
suspect this may be due to the following change:

http://cygwin.com/ml/cygwin-cvs/2005-q1/msg00202.html

I'll investigate further, but it would be nice to get this confirmed.
Here is the command I used to reproduce this:

perl -MNet::FTP -e '$a=Net::FTP-new(cygwin.com)-ls(/);'

uname -srv reports CYGWIN_NT-5.1 1.5.14s(0.124/4/2) 20050316 16:53:05.
Perl is version 5.8.6-4.  Anyone?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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



Re: Perl crash when using Net::FTP or LWP::UserAgent with recent CVS

2005-03-23 Thread Igor Pechtchanski
On Wed, 23 Mar 2005, Igor Pechtchanski wrote:

 Has anyone been able to reproduce this?  I get the same crash with any
 snapshot later than 20050311 (the 20050311 snapshot itself is fine).  I
 suspect this may be due to the following change:

 http://cygwin.com/ml/cygwin-cvs/2005-q1/msg00202.html

 I'll investigate further, but it would be nice to get this confirmed.
 Here is the command I used to reproduce this:

 perl -MNet::FTP -e '$a=Net::FTP-new(cygwin.com)-ls(/);'

 uname -srv reports CYGWIN_NT-5.1 1.5.14s(0.124/4/2) 20050316 16:53:05.
 Perl is version 5.8.6-4.  Anyone?

I don't know why I thought I was checking the later snapshots, but
apparently I wasn't.  All snapshots 20050319 and later work just fine with
the above perl invocation.  This is presumably due to
http://cygwin.com/ml/cygwin-cvs/2005-q1/msg00210.html (thanks, CGF).

Apologies to everyone for the noise.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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



Re: does rxvt support cut and paste?

2005-03-23 Thread Matt Wilkie
 highlight text, click in window to paste to, click middle mouse button(
 wheel).

Thanks for that. 

Does this mean there are no keyboard controls for cut/copy/paste?

-- 
-matt

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



Re: ssh-agent people (and others) please try latest snapshot

2005-03-23 Thread Christopher Faylor
On Wed, Mar 23, 2005 at 02:33:13PM -0500, Christopher Faylor wrote:
On Wed, Mar 23, 2005 at 01:53:05PM -0500, Brian Bruns wrote:
On Wednesday, March 23, 2005 1:19 PM [EST], Christopher Faylor wrote:

 The latest (2005-03-23 as of this writing) snapshot has some more
 improvements from Corinna wrt unix domain sockets.

 We're coming close to a 1.5.14 release so I would appreciate it if
 people would try the latest snapshot and report their successes or
 failures here.

 http://cygwin.com/snapshots/

With the 2005-03-23 snapshot, I unfortunately can no longer start
cygwin or any program that depends on the Cygwin1.dll - the program
uses 99% of the cpu, and must be killed with the task manager.  This
is a Win2k SP4 box with NTFS filesystem and all the latest patches on
a Celeron 766.  -22 doesn't exhibit this problem.

Oops.  Sorry.  I'll fix this ASAP.

It's fixed.  Sorry about that.  This was my fault.

cgf

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



Re: does rxvt support cut and paste?

2005-03-23 Thread Andrew DeFaria
Matt Wilkie wrote:
highlight text, click in window to paste to, click middle mouse 
button(wheel).
Thanks for that.
Does this mean there are no keyboard controls for cut/copy/paste?
Normally Shift-Insert will (Standard Windows conventions...)
--
A good scapegoat is almost as good as a solution.
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: fork error in Windows 2003 running as normal user

2005-03-23 Thread Kris Thielemans
Corrado Labinaz corradolab at virgilio.it writes:

 I've installed latest (1.5.13) cygwin on Windows Server 2003.
 It works fine while logged on as Administrator.
 Launching Bash as a normal User give the following error:
 
   3 [main] bash 3252 fork_parent: child 3260 died waiting for longjmp
 before
  initialization
 bash: fork: Bad file descriptor
 


Hi

I have exactly the same under Windows XP Home sp2.

In fact, I had a lot of trouble to get cygwin to work earlier for non-admin
users on this machine. The permissions were always wrong (e.g. files in /bin
were only executable for administrators, files in Documents and Settings
were all owned by the administrator etc). I fixed all (?) that by using
chmod and chown and got it to work. Then I updated to the latest cygwin and
am stuck again. I still strongly suspect a permission problem, but cannot
find which one.


Some more info:

- going to a windows cmd prompt, cd \cygwin\bin, executing just bash, does
not give this error, but I'm still stuck with that error message when
running any executable e.g. ls

- from a windows cmd prompt, executing some other cygwin utilities gives the
following:
C:\cygwin\bin\id.exe (3876): *** could not load user32, Win32 error 1114

Win32 error 1114 is apparently
A dynamic link library (DLL) initialization routine failed.

So, I checked permissions of user32.dll in c:\windows\system32. Weirdly
enough, all dll and exe there are listed as owned by adminstrators, and
rwxrwx---. That does not make any sense to me. Anyway, I tried then to chmod
+rx user32.dll (and some other dlls) but that didn't change the above error,
nor solve the problem.


- ssh [EMAIL PROTECTED] (e.g. when logged in as admin on machine) works
fine. I can then do ls etc without problems. (isn't that weird?)

- cygcheck -s as non-admin user says there are 2 cygwin1.dll in the path
(but both listed as .\cygwin1.dll). cygcheck -s as admin users does not
complain at all. and of course, I can find only 1 in c:\cygwin\bin anyway.
(Maybe this is because cygcheck has some problems? It obviously complains
about running id.exe for instance).


I've attached both cygchecks.
Any help will be greatly appreciated.

Kris Thielemans

Cygwin Configuration Diagnostics
Current System Time: Wed Mar 23 22:37:43 2005

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 2

Path:   C:\cygwin\usr\X11R6\bin
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Python22
c:\Program Files\PC-Doctor for Windows\services
.
c:\viavoice\Bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1007(Compaq_Owner) GID: 513(None)
513(None)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1007(Compaq_Owner) GID: 513(None)
0(root) 513(None)   544(Administrators)
545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

HOME = `c:\Documents and Settings\Compaq_Owner'
MAKE_MODE = `unix'
PWD = `/'
USER = `Compaq_Owner'

Use `-r' to scan registry

c:  hd  NTFS151967Mb  12% CP CS UN PA FC PRESARIO
d:  hd  FAT32 4347Mb  75% CPUN   PRESARIO_RP
e:  cd N/AN/A
f:  fd N/AN/A
g:  fd N/AN/A
h:  fd N/AN/A
i:  fd N/AN/A

C:\cygwin   /   system  binmode
c:\Documents and Settings   /home   system  binmode
c:\Documents and Settings\kris.THIEFOB  /home/kris  system  binmode
C:\cygwin/bin   /usr/binsystem  binmode
C:\cygwin/lib   /usr/libsystem  binmode
.   /cygdrive   system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

  243k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygdps-1.dll
   26k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygdpstk-1.dll
   28k 2004/03/31 C:\cygwin\usr\X11R6\bin\cygDtPrint-1.dll
   21k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygfontenc-1.dll
   36k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygFS-6.dll
  358k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygGL-1.dll
  438k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygGLU-1.dll
   75k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygICE-6.dll
   77k 2004/03/31 C:\cygwin\usr\X11R6\bin\cygMrm-2.dll
9k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygoldX-6.dll
 1413k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygOSMesa-4.dll
   20k 2005/02/23 

Re: ssh-agent people (and others) please try latest snapshot

2005-03-23 Thread David Rothenberger
On 3/23/2005 10:19 AM, Christopher Faylor wrote:
The latest (2005-03-23 as of this writing) snapshot has some more
improvements from Corinna wrt unix domain sockets.
We're coming close to a 1.5.14 release so I would appreciate it if
people would try the latest snapshot and report their successes or
failures here.
This snapshot is not working as well as the 20050322 snapshot for me. I 
start ssh-agent, add a key to it, and then run

  while true; do date; ssh-add -l; done
in four rxvt windows simultaneously. With the previous snapshot this 
worked fine. With this snapshot, the loops occasionally all hang up for 
a while and then several windows print

  Error writing to authentication socket.
  Error writing to authentication socket.
  The agent has no identities.
instead of the fingerprint for the key as they should.
I tried this with a bash script that would run ssh-add in a loop using 
strace. I eventually got the same error. I used Ctrl-Z to suspend the 
scripts and then kill %1 to kill them. In one window, this caused bash 
to use 100% of the CPU. When it finally did return to the window, I saw 
these errors:

  8 [main] bash 6920 sig_send: wait for sig_complete event failed, signal 
-41, rc 258, Win32 error 0
  5 [main] bash 4560 sig_send: wait for sig_complete event failed, signal 
-41, rc 258, Win32 error 0
kill %1 and kill -9 %1 had no effect, bash continued to use 100% of 
the CPU, and I eventually had to kill bash with the Windows Task Manager.

I did, however, capture strace output from the ssh-add execution that 
failed and the ssh-agent. They are here

  http://mysite.verizon.net/res00a7j/ssh-agent.zip
  http://mysite.verizon.net/res00a7j/ssh-agent.strace.txt
  http://mysite.verizon.net/res00a7j/ssh-add.2.strace.txt
  http://mysite.verizon.net/res00a7j/ssh-add.2.strace.2.txt
(The ssh-agent.strace.txt file is 500MB.)
ssh-add.2.strace.txt is the strace of the execution that failed. 
ssh-add.2.strace.2.txt is the strace from the previous execution of 
ssh-add in that window, which succeeded.

I notice the following in ssh-add.2.strace.txt:
  385  252744 [main] ssh-add 6592 fhandler_socket::sec_event_connect: 
sec_event_connect called
 1079  253823 [main] ssh-add 6592 fhandler_socket::signal_secret_event: 
signaled secret_event
551 10253374 [main] ssh-add 6592 fhandler_socket::check_peer_secret_event: 
WFSO rc=258
  116 10253490 [main] ssh-add 6592 fhandler_socket::sec_event_connect: accept 
from unauthorized server
  429 10253919 [main] ssh-add 6592 __set_winsock_errno: sec_event_connect:404 - 
winsock error 10061 - errno 111
HTH,
Dave
--
David Rothenbergerspammer? - [EMAIL PROTECTED]
GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734
To do two things at once is to do neither.
-- Publilius Syrus


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


Re: fork error in Windows 2003 running as normal user

2005-03-23 Thread Igor Pechtchanski
On Wed, 23 Mar 2005, Kris Thielemans wrote:

 Corrado Labinaz corradolab at virgilio.it writes:

  I've installed latest (1.5.13) cygwin on Windows Server 2003.
  It works fine while logged on as Administrator.
  Launching Bash as a normal User give the following error:
 
3 [main] bash 3252 fork_parent: child 3260 died waiting for longjmp
  before
   initialization
  bash: fork: Bad file descriptor

 Hi

 I have exactly the same under Windows XP Home sp2.

Not the same problem at all.

 In fact, I had a lot of trouble to get cygwin to work earlier for non-admin
 users on this machine. The permissions were always wrong (e.g. files in /bin
 were only executable for administrators, files in Documents and Settings
 were all owned by the administrator etc). I fixed all (?) that by using
 chmod and chown and got it to work. Then I updated to the latest cygwin and
 am stuck again. I still strongly suspect a permission problem, but cannot
 find which one.

What does getfacl /bin report?  I'd bet there isn't an inheritable
execute permission for everyone.  If this is the case, all the DLLs will
not be executable for other, which is consistent with your symptoms
below.

 Some more info:

 - going to a windows cmd prompt, cd \cygwin\bin, executing just bash, does
 not give this error, but I'm still stuck with that error message when
 running any executable e.g. ls

 - from a windows cmd prompt, executing some other cygwin utilities gives the
 following:
 C:\cygwin\bin\id.exe (3876): *** could not load user32, Win32 error 1114

 Win32 error 1114 is apparently
 A dynamic link library (DLL) initialization routine failed.

It's probably not user32 (as bash also uses it).  Try cygintl-3.dll or
cygiconv-2.dll.

 So, I checked permissions of user32.dll in c:\windows\system32. Weirdly
 enough, all dll and exe there are listed as owned by adminstrators, and
 rwxrwx---. That does not make any sense to me. Anyway, I tried then to chmod
 +rx user32.dll (and some other dlls) but that didn't change the above error,
 nor solve the problem.

 - ssh [EMAIL PROTECTED] (e.g. when logged in as admin on machine) works
 fine. I can then do ls etc without problems. (isn't that weird?)

It is.  Probably because some of SYSTEM's credentials leak through to the
underlying shell...

 - cygcheck -s as non-admin user says there are 2 cygwin1.dll in the path
 (but both listed as .\cygwin1.dll). cygcheck -s as admin users does not
 complain at all. and of course, I can find only 1 in c:\cygwin\bin anyway.
 (Maybe this is because cygcheck has some problems? It obviously complains
 about running id.exe for instance).

This is a superfluous message in this case.  It appears whenever cygcheck
is run from /bin, since cygcheck always checks the current directory
independently of the PATH.  Arguably, it's a cygcheck bug.

Either you ran admin's cygcheck from a different directory, or .
is not in the PATH for admin...  According to your cygcheck output, it's
the former.

FYI, it's better to run cygcheck -svr instead of just cygcheck -s, as
you seem to have done.

 I've attached both cygchecks.
 Any help will be greatly appreciated.

Try chmod a+x /bin/*.dll and see if that solves your problem.  If yes,
then setfacl -m d:m:rwx,d:g:rwx,d:o:r-x /bin should help for future
updates...
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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



Re: fork error in Windows 2003 running as normal user

2005-03-23 Thread Igor Pechtchanski
On Wed, 23 Mar 2005, Igor Pechtchanski wrote:

 On Wed, 23 Mar 2005, Kris Thielemans wrote:

  Corrado Labinaz corradolab at virgilio.it writes:
 
   I've installed latest (1.5.13) cygwin on Windows Server 2003.
   It works fine while logged on as Administrator.
   Launching Bash as a normal User give the following error:
  
 3 [main] bash 3252 fork_parent: child 3260 died waiting for longjmp
   before
initialization
   bash: fork: Bad file descriptor
 
  Hi
 
  I have exactly the same under Windows XP Home sp2.

 Not the same problem at all.

  In fact, I had a lot of trouble to get cygwin to work earlier for non-admin
  users on this machine. The permissions were always wrong (e.g. files in /bin
  were only executable for administrators, files in Documents and Settings
  were all owned by the administrator etc). I fixed all (?) that by using
  chmod and chown and got it to work. Then I updated to the latest cygwin and
  am stuck again. I still strongly suspect a permission problem, but cannot
  find which one.

 What does getfacl /bin report?  I'd bet there isn't an inheritable
 execute permission for everyone.  If this is the case, all the DLLs will
 not be executable for other, which is consistent with your symptoms
 below.

  Some more info:
 
  - going to a windows cmd prompt, cd \cygwin\bin, executing just bash, does
  not give this error, but I'm still stuck with that error message when
  running any executable e.g. ls
 
  - from a windows cmd prompt, executing some other cygwin utilities gives the
  following:
  C:\cygwin\bin\id.exe (3876): *** could not load user32, Win32 error 1114
 
  Win32 error 1114 is apparently
  A dynamic link library (DLL) initialization routine failed.

 It's probably not user32 (as bash also uses it).  Try cygintl-3.dll or
 cygiconv-2.dll.

  So, I checked permissions of user32.dll in c:\windows\system32. Weirdly
  enough, all dll and exe there are listed as owned by adminstrators, and
  rwxrwx---. That does not make any sense to me. Anyway, I tried then to chmod
  +rx user32.dll (and some other dlls) but that didn't change the above error,
  nor solve the problem.
 
  - ssh [EMAIL PROTECTED] (e.g. when logged in as admin on machine) works
  fine. I can then do ls etc without problems. (isn't that weird?)

 It is.  Probably because some of SYSTEM's credentials leak through to the
 underlying shell...

  - cygcheck -s as non-admin user says there are 2 cygwin1.dll in the path
  (but both listed as .\cygwin1.dll). cygcheck -s as admin users does not
  complain at all. and of course, I can find only 1 in c:\cygwin\bin anyway.
  (Maybe this is because cygcheck has some problems? It obviously complains
  about running id.exe for instance).

 This is a superfluous message in this case.  It appears whenever cygcheck
 is run from /bin, since cygcheck always checks the current directory
 independently of the PATH.  Arguably, it's a cygcheck bug.

 Either you ran admin's cygcheck from a different directory, or .
 is not in the PATH for admin...  According to your cygcheck output, it's
 the former.

 FYI, it's better to run cygcheck -svr instead of just cygcheck -s, as
 you seem to have done.

  I've attached both cygchecks.
  Any help will be greatly appreciated.

 Try chmod a+x /bin/*.dll and see if that solves your problem.  If yes,
 then setfacl -m d:m:rwx,d:g:rwx,d:o:r-x /bin should help for future

Make that setfacl -m d:m:rwx,d:g::rwx,d:o:r-x /bin.  Sigh.

 updates...
 HTH,
   Igor

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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



RE: fork error in Windows 2003 running as normal user

2005-03-23 Thread Kris Thielemans
 
Hi Igor

Thanks for your help.

 
 What does getfacl /bin report?  I'd bet there isn't an 
 inheritable execute permission for everyone.  If this is the 
 case, all the DLLs will not be executable for other, which 
 is consistent with your symptoms below.
 

$ getfacl /bin
# file: /bin
# owner: Compaq_Owner
# group: None
user::rwx
group::r-x
group:root:rwx
group:SYSTEM:rwx
group:Users:rwx
mask:rwx
other:r-x
default:user::rwx
default:group:root:rwx
default:group:SYSTEM:rwx
default:group:Users:rwx
default:mask:rwx

Before I've posted this, I've done things like
chmod -R go+rx bin lib


  C:\cygwin\bin\id.exe (3876): *** could not load user32, Win32 error 
  1114
 
  Win32 error 1114 is apparently
  A dynamic link library (DLL) initialization routine failed.
 
 It's probably not user32 (as bash also uses it).  Try 
 cygintl-3.dll or cygiconv-2.dll.
 

I don't think this is it:

$ getfacl cygiconv-2.dll
# file: cygiconv-2.dll
# owner: Compaq_Owner
# group: None
user::rwx
group::r-x
group:root:rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:r-x
$ getfacl cygintl-3.dll
# file: cygintl-3.dll
# owner: Compaq_Owner
# group: None
user::rwx
group::r-x
group:root:rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:r-x


 FYI, it's better to run cygcheck -svr instead of just 
 cygcheck -s, as you seem to have done.
 

Ok. Attached, in case it helps.
 
 Try chmod a+x /bin/*.dll and see if that solves your 

I guess you mean chmod o+x...

 problem.  If yes, then setfacl -m d:m:rwx,d:g:rwx,d:o:r-x 
 /bin should help for future updates...

As I mentioned above, the chmod didn't help. Now I also tried

setfacl -m d:m:rwx,d:g::rwx,d:o:r-x /bin

And no, that doesn't work either.


Some more info on permissions, also to clear up some confusion I might have
generated in my previous email.

Seems that I was caught by the difference between POSIX and NT ACLs (nicely
described in Corinna's text on ntsec in the cygwin documentation).

The dlls in c:\windows\system32 were all readable/executable by members of
the Users group, which presumably is why all windows programs did work :-).
I checked this with getfacl, but also by rebooting XP Home in Safe mode
(where you finally have the security tab in the file properties back). So,
there really was no need for me to change those permissions I guess.
(Corinna's document doesn't really specify who is in Users. I guess this is
because in NT and e.g. XP Pro you can set this in the user administration.
However, on XP Home, you cannot. I'm only hoping that every account is in
Users).

That brought me then to /etc/passwd. Indeed, my non-admin user had a group
ID as None. I changed that to Users. I also chown his files to kris.Users. 

Still exactly the same problems though.

Kris

Cygwin Configuration Diagnostics
Current System Time: Thu Mar 24 00:23:11 2005

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 2

Path:   C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
c:\Python22
C:\Program Files\PC-Doctor for Windows\services
.
C:\viavoice\Bin
c:\cygwin\bin

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

Path = 
`C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Python22;C:\Program 
Files\PC-Doctor for Windows\services;;C:\viavoice\Bin;c:\cygwin\bin'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\kris.THIEFOB\Application Data'
CommonProgramFiles = `C:\Program Files\Common Files'
COMPUTERNAME = `THIEFOB'
ComSpec = `C:\WINDOWS\system32\cmd.exe'
FP_NO_HOST_CHECK = `NO'
HOMEDRIVE = `C:'
LOGONSERVER = `\\THIEFOB'
NUMBER_OF_PROCESSORS = `1'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 3 Stepping 4, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0304'
ProgramFiles = `C:\Program Files'
PROMPT = `$P$G'
SESSIONNAME = `Console'
SystemDrive = `C:'
SystemRoot = `C:\WINDOWS'
TEMP = `C:\DOCUME~1\KRIS~1.THI\LOCALS~1\Temp'
TMP = `C:\DOCUME~1\KRIS~1.THI\LOCALS~1\Temp'
USERDOMAIN = `THIEFOB'
USERNAME = `kris'
USERPROFILE = `C:\Documents and Settings\kris.THIEFOB'
windir = `C:\WINDOWS'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home
  (default) = `c:\Documents and Settings'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home/kris
  (default) = 

[patch] invoking user's preferred shell from cygwin.bat

2005-03-23 Thread Michael Wardle
Hi
As you will know, the default Cygwin shortcuts invoke cygwin.bat which 
in turn runs bash --login.

On most of my Unix accounts, I have tcsh set as my login shell, and have 
also started to find zsh quite useful, therefore I would prefer to be 
able to set my preferred shell in Cygwin as well.  Most Unix systems do 
this with the pw_shell field of the password database, /etc/passwd.

I have attached a simple C source file which tries to use the user's 
shell if it's specified in the password database.  You might compile 
this and make it available with a name such as /bin/shell and change 
cygwin.bat to invoke shell instead of bash --login.

Design decisions:
- falls back to the default shell rather than exiting if a user
  doesn't exist since Cygwin doesn't currently require a valid
  user account
- uses the default shell if the shell field in /etc/passwd is blank
  as many other Unixes do
- uses /bin/bash as the default shell since cygwin.bat uses that
  as the default
Features:
- sets argv[0] to the shell's basename prefixed by a hyphen/minus
  character which makes most common shells switch to login mode
I hope you find it useful.
--
Michael Wardle
/*
 * shell - start user's preferred shell
 */

#include sys/types.h
#include errno.h
#include pwd.h
#include stdio.h
#include stdlib.h
#include string.h
#include unistd.h

#define DEFAULT_SHELL /bin/bash
#define PATH_SEPARATOR '/'

int main(int argc, char **argv)
{
const struct passwd *passwd;
const char *shell;
char *basename;
char *arg0;
char **args;

/* Get the current user's shell */
errno = 0;
passwd = getpwuid(getuid());
if (!passwd) {
fprintf(stderr, Cannot get password entry: %s\n,
strerror(errno));
shell = NULL;
}
else {
shell = passwd-pw_shell;
}

/* Fall back to the default if the shell is unset or empty */
if (!shell||!*shell) {
fprintf(stderr, Using default shell %s\n, DEFAULT_SHELL);
shell = DEFAULT_SHELL;
}

/* Set the SHELL environment variable for make, etc. */
setenv(SHELL, shell, 1);

/* Set up the shell's argument vector - argv[0] */
errno = 0;
arg0 = (char *)malloc(strlen(shell)*sizeof(char)+1);
if (!arg0) {
perror(Cannot allocate memory for shell argument 0\n);
exit(1);
}
basename = strrchr(shell, (int)PATH_SEPARATOR);
if (basename) basename++;   /* move past '/' */
if (basename) {
/* Set arg0 to -basename to denote login shell */
strcpy(arg0, -);
strcat(arg0, basename);
}
else {
/* Leave arg0 as full path */
strcpy(arg0, shell);
}

/* Set up the shell's argument vector - argv */
errno = 0;
args = (char **)malloc(2*sizeof(arg0)); /* {arg0, NULL} */
if (!args) {
perror(Cannot allocate memory for shell arguments\n);
exit(1);
}
args[0] = arg0;
args[1] = (char *)NULL;

/* Start the shell */
errno = 0;
if (execv(shell, args) == -1) {
fprintf(stderr, Cannot execute shell %s: %s\n, shell,
strerror(errno));
exit(1);
}

exit(0);
}

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

Re: installing identical cygwin configurations on multiple systems

2005-03-23 Thread fergus
See all of

http://cygwin.com/ml/cygwin/2005-01/msg00528.html
http://cygwin.com/ml/cygwin/2005-01/msg00536.html
http://cygwin.com/ml/cygwin/2005-01/msg00538.html

Fergus


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



How to compile with gcc/cygwin for multithreaded DLL access?

2005-03-23 Thread jeff_burch
I have a simple program that compiles and runs fine when built using Visual 
Studio. It accesses the SICL instrument control DLL (sicl32.dll). The program 
needs to be compiled with the Use run-time library: Multithreaded DLL option 
on the VS's Project Settings dialog. This executable runs fine and uses the 
following DLLs:

cygcheck Debug/testSicl.exe
Debug/testSicl.exe
  .\SICL32.dll
C:\WINDOWS\system32\KERNEL32.dll
  C:\WINDOWS\system32\ntdll.dll
C:\WINDOWS\system32\ADVAPI32.dll
  C:\WINDOWS\system32\RPCRT4.dll
C:\WINDOWS\system32\VERSION.dll
C:\WINDOWS\system32\MSVCR70.dll
  C:\WINDOWS\system32\MSVCRT.dll

I can compile and link this same program with gcc (cygwin) but don't know how 
to specify to gcc that it will use a Multithreaded DLL. The compile/link 
looks like:

gcc -g -o testSicl -I /cygdrive/c/progra~1/agilent/iolibr~1/c testSicl.c -L . 
-lsicl32

cygcheck testSicl.exe
Found: .\testSicl.exe
testSicl.exe
  C:\cygwin\bin\cygwin1.dll
C:\WINDOWS\system32\ADVAPI32.DLL
  C:\WINDOWS\system32\ntdll.dll
  C:\WINDOWS\system32\KERNEL32.dll
  C:\WINDOWS\system32\RPCRT4.dll
  .\SICL32.dll
C:\WINDOWS\system32\VERSION.dll
C:\WINDOWS\system32\MSVCR70.dll

Note that I needed to make a local copy of SICL32.dll so that I didn't need to 
have /cygdrive/c/windows/system32 on my command line. 

testSicl: cygcheck Debug/testSicl.exe
When I run it, I successfully invoke the iopen( ) function in the SICL DLL. 
When I call the iprintf( ) function, it core dumps. Here's the gdb backtrace:

./testSicl gpib0,15
successful open of gpib0,15 inst=0x0001
Segmentation fault (core dumped)

gdb testSicl
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i686-pc-cygwin...
(gdb) r gpib0,15
Starting program: /cygdrive/c/dmcp/ieee1588/omniber/testSicl/testSicl.exe gpib0,
15
successful open of gpib0,15 inst=0x0001

Program received signal SIGSEGV, Segmentation fault.
0x610ed429 in wmemset () from /usr/bin/cygwin1.dll
(gdb) bt
#0  0x610ed429 in wmemset () from /usr/bin/cygwin1.dll
#1  0x610ebd6c in wmemset () from /usr/bin/cygwin1.dll
#2  0x610ebc08 in wmemset () from /usr/bin/cygwin1.dll
#3  0x610e7647 in wmemset () from /usr/bin/cygwin1.dll
#4  0x610938ef in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#5  0x610064a3 in getprogname () from /usr/bin/cygwin1.dll
#6  0x610066b0 in [EMAIL PROTECTED] () from /usr/bin/cygwin1.dll
#7  0x in ?? () from
(gdb) k
Kill the program being debugged? (y or n) y
(gdb) q

Thanks in advance,

-   J
-   
Jeff Burch

Agilent Laboratories   
Communications Solutions Department
System and Solutions Lab
3500 Deer Creek Rd, M/S 24M-A   
Palo Alto, CA 94304-1392

e-mail: [EMAIL PROTECTED] 
Phone:  650-485-6364 
Fax: 650-485-8092


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



Re: How to compile with gcc/cygwin for multithreaded DLL access?

2005-03-23 Thread Brian Dessent
[EMAIL PROTECTED] wrote:

 cygcheck testSicl.exe
 Found: .\testSicl.exe
 testSicl.exe
   C:\cygwin\bin\cygwin1.dll
 C:\WINDOWS\system32\ADVAPI32.DLL
   C:\WINDOWS\system32\ntdll.dll
   C:\WINDOWS\system32\KERNEL32.dll
   C:\WINDOWS\system32\RPCRT4.dll
   .\SICL32.dll
 C:\WINDOWS\system32\VERSION.dll
 C:\WINDOWS\system32\MSVCR70.dll

http://cygwin.com/faq/faq.html#SEC98

It's pretty much guaranteed that your program will crash and burn if it
links against both Cygwin1.dll and MSVCRT*.DLL.  They both provice a C
runtime, and trying to mix two implementations of that same runtime is a
no-no.

It looks like this sicl32 dll was linked against msvcrt, so you'll have
to recompile it against cygwin1.dll.

(insert friendly reminder here that anything that links with Cygwin1.dll
must be released under GPL or other OSI-approved license)

If you don't have the source for sicl32.dll and you're trying to create
a program that depends on both it and Cygwin1.dll, then you're probably
violating a license somewhere.

Brian

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



Path confusion

2005-03-23 Thread Luke Kendall
Here's something that stunned me: I see different contents of a
directory I want to be empty-ish (c:/cygwin/home), depending on how I
refer to it.  I think it's because sometimes, c:/cygwin == /.

$ cygpath -m /
C:/cygwin

$ ls c:/cygwin/home
00-THIS-DIRECTORY-SHOULD-BE-EMPTY.txt

$ cd c:/cygwin/home
$ ls   # Doesn't produce: 00-THIS-DIRECTORY-SHOULD-BE-EMPTY.txt !!!
Administrator README.txtcameronluke   temp
Guest aplsrv.logdemos  luke.okay  test.prn
HelpAssistant aplsrv01.log  desktop.iniraphaeltest.prn.pdf
James - xyz manipulation  aplsrv02.log  docs   scotty
My Music  aplsrv03.log  hcp-tools  share
My Pictures   bad   hcp-tools-old  stephene

In other words, in c:/cygwin, ls ./home has produced a listing of
d:/home, aka /home.  It's as if Cygwin's internal logic has said,
c:/cygwin is /, therefore find home under /.

Surely that's broken normal Unix file system semantics?  If it's not a
bug, but a feature, can anyone explain it?  To me it's mind-bogglingly
confusing.

By way of some background, we undo Cygwin's default setup of home to
achieve one thing.

We absolutely don't want home directories to be inside Cygwin, since
removing Cygwin would also remove the user files.  We don't even want
the home directory on the C: drive, since re-installing Windows would
also remove the user files.

$ mount
C:\cygwin\bin on /usr/bin type system (textmode)
C:\cygwin\lib on /usr/lib type system (textmode)
C:\cygwin on / type system (textmode)
D:\home on /home type system (textmode)
c: on /cygdrive/c type system (textmode,noumount)
d: on /cygdrive/d type system (textmode,noumount)
l: on /cygdrive/l type system (textmode,noumount)
p: on /cygdrive/p type system (textmode,noumount)
u: on /cygdrive/u type system (textmode,noumount)
w: on /cygdrive/w type system (textmode,noumount)
x: on /cygdrive/x type system (textmode,noumount)
y: on /cygdrive/y type system (textmode,noumount)

This is with a new install of a very current Cygwin:

$ cygcheck -s | grep ^cygwin 
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 67
cygwin  1.5.13-1

Have I misunderstood something?

Regards,

luke


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



Re: Path confusion

2005-03-23 Thread Brian Dessent
Luke Kendall wrote:

 Here's something that stunned me: I see different contents of a
 directory I want to be empty-ish (c:/cygwin/home), depending on how I
 refer to it.  I think it's because sometimes, c:/cygwin == /.
 
 $ cygpath -m /
 C:/cygwin
 
 $ ls c:/cygwin/home
 00-THIS-DIRECTORY-SHOULD-BE-EMPTY.txt
 
 $ cd c:/cygwin/home

I think it's because when you 'cd' the path is normalized.  After cd
c:/cygwin/home the current working directory is now /home.  If you do
ls /home you should see the contents of the mount, if you do ls
c:/cygwin/home you'll see the contents of that directory itself.  In
other words mounting something on /home only affects paths that start
with /home.  If you want c:/cygwin/home to actually be d:/home
then make it a symlink.

Brian

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



Mailing list confusion

2005-03-23 Thread Arend-Jan Westhoff
How come when I look at 
http://sources.redhat.com/ml/cygwin/2005-03/index.html:

I see the message:
March 24, 2005 07:32 Re: Path confusion Brian Dessent
That message lists:
07:17 Path confusion Luke Kendall 
As its reference, but Luke's message has no Follow Up to Brian's?
Also when I look at the thread index:
http://sources.redhat.com/ml/cygwin/2005-03/threads.html
Luke's message is listed but Brian's is not.

An even stronger example:
March 24:
06:15 Re: installing identical cygwin configurations on multiple systems
fergus 
and March 23:
19:56 installing identical cygwin configurations on multiple systems 
Greg
Vaidman 
Have neither a Reference nor a Follow Up to the other (though the thread
index looks normal?).

Looks to me like there's something broken.

Arend-Jan Westhoff.

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



problems starting sshd - again

2005-03-23 Thread Mike Kenny - BCX - Professional Services JHB
I know this has been on the list previously, but I have searched the FAQ
and recent archives and cannot find the relevant references. I have
found some relating to permissions, but these don't address my issue.
Anyway, my XP system died and I have had to re-install windoze. So as
this was a fresh install I obtained a later version (1.5.12) of cygwin
than the year or so old version I had. I had sshd working with the older
version of cygwin but I do not want to regress that version. The new
version of cygwin installed fine, I then executed

$ ssh-host-config
I responded 'yes' whenever prompted (later I tried without privilege
separation with the same result)
$ cygrunsrv -I sshd -p /usr/sbin/sshd.exe
$ cygrunsrv -Q sshd
this showed the service as stopped, though nothing showed in windoze
services
$ cygrunsrv -S sshd
this gave me a windows error 1062 and reported, correctly, that the
service had not started
my event log merely shows an operation not permitted on sshd

I know there have been previous discussions of this, but can't find
them.

Any pointers? To what I am doing wrong?

Thanks,

Mike

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



openssh under Windows XP

2005-03-23 Thread Lars Schouw
I am having a problem installing the ssh server daemon
sshd under Windows XP.
I keep on getting the following error:

$ ssh-host-config  -y
Overwrite existing /etc/ssh_config file? (yes/no) yes
Generating /etc/ssh_config file
Overwrite existing /etc/sshd_config file? (yes/no) yes
Privilege separation is set to yes by default since
OpenSSH 3.3.
However, this requires a non-privileged account called
'sshd'.
For more info on privilege separation read
/usr/share/doc/openssh/README.privsep
.

Should privilege separation be used? (yes/no) yes
Generating /etc/sshd_config file

Host configuration finished. Have fun!

I have created the sshd user under Windows and in
cygwin /etc/passwd


When I look in the event log under Windows XP I can
see this error message:
Object Open:
Object Server:  Security
Object Type:Key
Object Name:
\REGISTRY\USER\S-1-5-21-1262546438-923394911-2232506658-29478
Handle ID:  -
Operation ID:   {0,14750546}
Process ID: 740
Image File Name:C:\WINDOWS\system32\svchost.exe
Primary User Name:  IBTKYGSW84974$
Primary Domain: AD
Primary Logon ID:   (0x0,0x3E7)
Client User Name:   schouwl
Client Domain:  AD
Client Logon ID:(0x0,0x22D5EC)
Accesses:   MAX_ALLOWED 

Privileges: -
Restricted Sid Count: 0


Does this ring a bell by anyone?
My Windows admin told me it might because there is a
limit fo how many open socket connections the Windows
XP pro can have open at one time and should try on a
server version of Windows.

Regards
Lars Schouw

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Updated: openssl-0.9.7f-1, openssl-devel-0.9.7f-1

2005-03-23 Thread Corinna Vinschen
I've updated the version of OpenSSL to 0.9.7f-1.  This also includes the
openssl-devel package.

This is a upstream bug fix update.  The Cygwin version has a minor tweak
applied which was necessary to resolve a build conflict.  The patch is
already sent upstream.


Official release message:
===

  OpenSSL version 0.9.7f released
  ==

  OpenSSL - The Open Source toolkit for SSL/TLS
  http://www.openssl.org/

  The OpenSSL project team is pleased to announce the release of
  version 0.9.7f of our open source toolkit for SSL/TLS.  This new
  OpenSSL version is a bugfix release and incorporates changes and
  bugfixes to the toolkit (for a complete list see
  http://www.openssl.org/source/exp/CHANGES ).

  The most significant changes are:

o Several compilation issues fixed.
o Many memory allocation failure checks added.
o Improved comparison of X509 Name type.
o Mandatory basic checks on certificates.
o Performance improvements.

  We consider OpenSSL 0.9.7f to be the best version of OpenSSL available
  and we strongly recommend that users of older versions upgrade as
  soon as possible.  OpenSSL 0.9.7f is available for download via HTTP
  and FTP from the following master locations (you can find the various
  FTP mirrors under http://www.openssl.org/source/mirror.html):

o http://www.openssl.org/source/
o ftp://ftp.openssl.org/source/

  The distribution file name is:

o openssl-0.9.7f.tar.gz
  MD5 checksum: b2d37d7eb8a5a5040d834105d5ae1a50

  The checksums were calculated using the following command:

openssl md5  openssl-0.9.7f.tar.gz


  Yours,
  The OpenSSL Project Team...

Mark J. Cox Ben Laurie  Andy Polyakov
Ralf S. Engelschall Richard Levitte Geoff Thorpe
Dr. Stephen Henson  Bodo M?ller
Lutz J?nickeUlf M?ller
Nils Larsch
===

To update your installation, click on the Install Cygwin now link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.


*** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the List-Unsubscribe:  tag in the email header of this message.
Send email to the address specified there.  It will be in the format:


[EMAIL PROTECTED]

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

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at the above URL.

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:cygwin@cygwin.com
Red Hat, Inc.