Snapshot heads up for 20060301 2310 version

2006-03-01 Thread Karl M

Hi All...

With the latest, if I do a

cd /

my bash window disappears. I haven't had time to explore further. 20060227 
works fine.


Thanks,

...Karl



--
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: Snapshot heads up for 20060301 2310 version

2006-03-01 Thread Christopher Faylor
On Wed, Mar 01, 2006 at 03:58:19PM -0800, Karl M wrote:
>Hi All...
>
>With the latest, if I do a
>
>cd /
>
>my bash window disappears. I haven't had time to explore further. 20060227 
>works fine.

WJFFM.

We need the details described at 
http://cygwin.com/problems.html

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/



compiler option

2006-03-01 Thread Basavaraj Hiremath
Hi,
I am compiling a file(strerror.c) with following
option
-bash-2.05b$ arm-wince-pe-gcc -mcpu=xscale -c -ansi
-D__stdcall= -D_OFF_T_ -DHA
VE_CONFIG_H -I/usr/local/wince/cross-tools/include 
-I. -I./../include  -W -Wal
l -Wtraditional -pedantic  ./strerror.c -o
pic/strerror.o


It's giving following compilation error
/strerror.c:626: error: expected identifier or '('
before string constant
/strerror.c:628: error: expected identifier or '('
before '{' token



file strerror.c has following function

char *
strerror (errnoval)  -> line 626
  int errnoval;
{--> line 628
  const char *msg;
  static char buf[32];
---
-
}


Could somebody tell me, what is the compiler option to
go pass thru this kind of implementation?


Thanks in advance
Raj


__
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/



Re: compiler option

2006-03-01 Thread Igor Peshansky
On Wed, 1 Mar 2006, Basavaraj Hiremath wrote:

> Hi,
> I am compiling a file(strerror.c) with following
> option
> -bash-2.05b$ arm-wince-pe-gcc -mcpu=xscale -c -ansi
^
> -D__stdcall= -D_OFF_T_ -DHAVE_CONFIG_H
> -I/usr/local/wince/cross-tools/include -I. -I./../include -W -Wall
> -Wtraditional -pedantic ./strerror.c -o pic/strerror.o
>
> It's giving following compilation error
> /strerror.c:626: error: expected identifier or '('
> before string constant
> /strerror.c:628: error: expected identifier or '('
> before '{' token
>
> file strerror.c has following function
>
> char *
> strerror (errnoval)  -> line 626
>   int errnoval;
^
> {--> line 628
>   const char *msg;
>   static char buf[32];
> ---
> -
> }
>
> Could somebody tell me, what is the compiler option to go pass thru this
> kind of implementation?

You are compiling a K&R-style C function header in ANSI mode -- of course
you're getting an error.  Either remove the -ansi flag, or fix the file to
use ANSI-style declaration.

Google for "k&r ansi" for innumerable resources on this.  Oh, and this has
nothing to do with Cygwin.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: compiler option

2006-03-01 Thread Igor Peshansky
On Wed, 1 Mar 2006, Basavaraj Hiremath wrote:

> I am compiling a file(strerror.c) with following option
> [snip]

Oh, and please don't hijack an unrelated thread for your questions -- if
you need to ask something, post a new message instead of replying to one.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/



[Newbie] Installer Question

2006-03-01 Thread Michael Banks
We have developed a product for the medical industry, which makes use of a few 
of the open-source cygwin tools (like, grep, find, etc.). The problem is that, 
believe it or not, many doctors' offices do not have an Internet connection, so 
installing cygwin via the downloadable setup program isn't a viable option

I think ideally we would build a single installer that includes our 
closed-source product, the needed open-source cygwin tools, and the full 
sources of cygwin. How exactly do we include the proper cygwin files, so that 
we're in compliance with the licensing? If we do a sample cygwin install on a 
PC, does the cygwin folder contain everything we need (open-source tools + 
cygwin source), or is it more complicated than that?

--
Regards,

Sean Mills
Grantwood Technology, LLC
7255 Old Oak Blvd C405
Middleburg Heights OH 44130
Phone: 440-816-4663
Fax: 440-816-5398

--
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: [Newbie] Installer Question

2006-03-01 Thread skaller
On Wed, 2006-03-01 at 20:34 -0500, Michael Banks wrote:
> We have developed a product for the medical industry,

Why don't you set up a mirror on a portable and 
just plug it into the target computer, install Cygwin,
via LAN connection, then install your product?

-- 
John Skaller 
Async PL, Realtime software consultants
Checkout Felix: http://felix.sourceforge.net


--
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: rxvt and line-drawing characters

2006-03-01 Thread Andrew DeFaria

Brian Dessent wrote:

Andrew DeFaria wrote:
I like using rxvt as my terminal. Recently I discovered pstree (don't 
know how I missed it before). pstree doesn't appear to be in Cygwin 
but it does appear to be on Linux. I often use rxvt in conjunction with

It's been included in the psmisc cygwin package for some time.

Ah, thanks. I hadn't been installing that...


ssh
to log into Linux machines. Now pstree supports a -G to use line 
drawing characters. This works under xterm but not under rxvt. How 
does one use line-drawing characters in rxvt?
You need a font that has the DOS/OEM characters instead of the 
standard codepage 1252 / ISO 8858-1 character set. If you search 
around there is a patched version of lucida console (called "lucida 
consoleP" or luconP.zip) that has this. You also need to set TERM 
(-tn) to rxvt-cygwin-native I think.
I searched fro luconP.zip and found some references -but all sites that 
appear to have the file seem to have went belly up. Anybody got a copy 
of this font?



--
If a pig loses its voice, is it disgruntled?


--
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: rxvt and line-drawing characters

2006-03-01 Thread Brian Dessent
Andrew DeFaria wrote:

> I searched fro luconP.zip and found some references -but all sites that
> appear to have the file seem to have went belly up. Anybody got a copy
> of this font?

http://www.cygwin.com/ml/cygwin/2005-10/msg01042.html

--
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: cygwin scp -r fails

2006-03-01 Thread Dale
I confirm the failure.  Also, the 20060301 snapshot works for me.

"scp -r" worked OK for me with cygwin-1.5.18-1.
"scp -r" silently failed with cygwin-1.5.19-4.
I was able to make the problem come and go by copying old or new
cygwin1.dll into /bin.

"scp -r" again works for me with the snapshot from
http://cygwin.com/snapshots/cygwin1-20060301.dll.bz2

On Fri, Feb 24, 2006 at 02:17:38AM +, Greg Tokarski wrote:
> Corinna Vinschen  cygwin.com> writes:
> > On Feb 22 23:04, Greg Tokarski wrote:
> > > I just installed the dev. snapshot as suggested by Corinna
> > > > Are you running Cygwin 1.5.19-4?  Anyway, try the latest developer's
> > > > snapshot from http://cygwin.com/snapshots/  It probably solves your
> > > > problem.
> > > and nothing seems to have changed. And yes, I was on the 1.5.19-4.
> > Sure you installed correctly?  I can not reproduce this.
> > Corinna
> 
> Hi.
> 
> Yes, I am pretty sure I have done it right - just unzipped into the cygwin 
> directory replacing components of etc and usr if I remeber right
> How can I check if it got applied? I mean aside from maybe the timestamps.
> 
> Anyhow, you are not the only one who cannot replicate it; so I think it 
> really 
> has something to do with windows :(
> I will install on another system and test; but cannot till next week.
> The guys at the "bug central" emailed me back on my bug submit, and they 
> cannot 
> replicate it either.
> 
> There's not many cases of this happening, so I assume it's something weird
> 
> Oh well... I got a workaround that allows me to do what I need, and if needed 
> I 
> can just wait and see what happens in the next release.
> 
> Thx for trying to help though.
> 
> GT
> 
> 
> 
> 
> 
> --
> 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/

--
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/



'Missing isnand' still not fixed in 2006-03-01 snapshot

2006-03-01 Thread Jerry D. Hedden
Using the full (inst) 2006-03-01 (23:10 GMT) snapshot, I'm still getting
these errors when building Perl:

/c/perl_tmp/perl-5.8.8/libperl.a(pp.o):pp.c:(.text+0x643b): undefined
reference to `___isnand'
/c/perl_tmp/perl-5.8.8/libperl.a(pp.o):pp.c:(.text+0x64f2): undefined
reference to `___isnand'
/c/perl_tmp/perl-5.8.8/libperl.a(pp.o):pp.c:(.text+0x6506): undefined
reference to `___isnand'

Is there something else I need to download/fix/modify?


--
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: rxvt and line-drawing characters

2006-03-01 Thread Charles Wilson

Brian Dessent wrote:



I searched fro luconP.zip and found some references -but all sites that
appear to have the file seem to have went belly up. Anybody got a copy
of this font?


http://www.cygwin.com/ml/cygwin/2005-10/msg01042.html



Nope, the cygutils website was relocated to 
http://cygutils.fruitbat.org/ thanks to the generosity of Peter Castro. 
 Not much happening there; it was rendered largely obsolete once I got 
most of my stuff ported to the cygwin packaging system in (what? 2000?). 
 However, luconP.zip still lives there, at


http://cygutils.fruitbat.org/bashprompt/index.html

Strangely, if I set TERM=rxvt-cygwin-native , use luconP as my font , it 
does NOT matter whether my CYGWIN variable has codepage:oem, 
codepage:ansi, or neither.  The following behaviors are the same:


ascii.exe prints the line draw characters
pstree -G prints garbage

It *could be* due to the fact that pstree uses ncurses, and ascii does 
not.   Checking...


Hmmm.  /usr/lib/ncurses/test/ncurses.exe (part of the ncurses-demo 
package) turns the screen black-on-black when I try to check the 
line-draw characters.  So I can't even tell if ACS chars with ncurses is 
broken -- first I gotta figure out why the colors are getting scrogged 
by the test program!  Somebody, like the ncurses maintainer, should fix 
that.


Oh.  That'd be me, then.  Ooops.  I'll try to look into it soon, but PTC.

--
Chuck

--
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: 'Missing isnand' still not fixed in 2006-03-01 snapshot

2006-03-01 Thread Igor Peshansky
On Wed, 1 Mar 2006, Jerry D. Hedden wrote:

> Using the full (inst) 2006-03-01 (23:10 GMT) snapshot, I'm still getting
> these errors when building Perl:
>
> /c/perl_tmp/perl-5.8.8/libperl.a(pp.o):pp.c:(.text+0x643b): undefined
> reference to `___isnand'
> /c/perl_tmp/perl-5.8.8/libperl.a(pp.o):pp.c:(.text+0x64f2): undefined
> reference to `___isnand'
> /c/perl_tmp/perl-5.8.8/libperl.a(pp.o):pp.c:(.text+0x6506): undefined
> reference to `___isnand'
>
> Is there something else I need to download/fix/modify?

Did you install the whole snapshot, or just the DLL?  Some of the changes
were probably to the header files, which need to be installed too.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/



chroot bug?

2006-03-01 Thread Eric Blake
I noticed the following strange behavior in chroot:

$ chroot /bin /sleep 60 &
[1] 16220539
$ readlink /proc/${!}/root  # simple test of whether chroot worked
/bin
$ chroot //EBLAKE/share /cygwin/bin/sleep 60 &
[2] 566487
$ readlink /proc/${!}/root   # Good - chrooted to a share
//EBLAKE/share
$ chroot // //EBLAKE/share/cygwin/bin/sleep 60 &
[3] 529435
$ readlink /proc/${!}/root# Oops - should be //, not /
/
$ chroot //EBLAKE/share/cygwin/bin/sleep 60 &  # Oops, failed to chroot
[4] 566487
$ chroot: cannot chdir to root directory: No such file or directory

Why is chroot failing to find //EBLAKE, when it worked with // (at
least, it slept correctly, although root linked to the wrong place),
and did just fine with //EBLAKE/share?

-- 
Eric Blake

--
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: 'Missing isnand' still not fixed in 2006-03-01 snapshot

2006-03-01 Thread Jerry D. Hedden
Jerry D. Hedden wrote:
> > Using the full (inst) 2006-03-01 (23:10 GMT) snapshot, I'm still getting
> > these errors when building Perl:
> >
> > /c/perl_tmp/perl-5.8.8/libperl.a(pp.o):pp.c:(.text+0x643b): undefined
> > reference to `___isnand'
> > /c/perl_tmp/perl-5.8.8/libperl.a(pp.o):pp.c:(.text+0x64f2): undefined
> > reference to `___isnand'
> > /c/perl_tmp/perl-5.8.8/libperl.a(pp.o):pp.c:(.text+0x6506): undefined
> > reference to `___isnand'

Igor Peshansky asked:
> Did you install the whole snapshot, or just the DLL?

The full (inst) 2006-03-01 (23:10 GMT) snapshot  I.e.,
cygwin-inst-20060301.tar.bz2 where 'cygwin-inst-*.tar.bz2 = directory
from "make install" (dll, exes, libs, headers, etc)'


--
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: OpenSSH for Non Administrators

2006-03-01 Thread Siegfried Heintze
I looked in http://www.openssh.com/faq.html#1.1 as reference by
c:/cygwin/usr/share/doc/openssh/README and I'm having trouble finding the
document that explains how to set ssh up as a service on a windows server.
Can someone please point me to the correct document?
c:/cygwin/usr/share/doc/openssh/README said to refer to the INSTALL document
but I see no such in c:/cygwin/usr/share/doc/openssh. Is my installation
incomplete?

There seems to be a lot of information in "man sshd" and "info sshd" but I
could not find where it explains to start it up as a service. No wait: it
says it is normally started in /etc/rc but my cygwin installation has no
such directory. Don't I have to do something with cygrunsrv or some such
utility? Where is the documentation on ssh-host-config that Damian is using
below? I tried man and info with no luck.

Can cygwin ssh be used with the -X option to open an X session on a windows
server? 

Can cygwin ssh be used with VNC to open a VNC session on a remote server? I
have successfully open a session using plain "RealVNC" server on the windows
server (from red hat 8) and would like to do it securely with ssh.

Thanks,
Siegfried

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Igor Peshansky
Sent: Tuesday, February 28, 2006 2:27 PM
To: Damian Sobieralski
Cc: cygwin@cygwin.com
Subject: Re: OpenSSH for Non Administrators

On Tue, 28 Feb 2006, Damian Sobieralski wrote:

> My apologies if this has asked before.  I researched as much as I could
> on my own. I hope a kind soul can direct me to a useful resource.
>
>  I installed Cygwin on a Windows 2003 Server with OpenSSH 4.2p1-1.
> After installing I ran ssh-host-config and chose privilege separation.
>
> "privilege separation" -> Yes
> "create local user sshd_server" -> Yes
> "install sshd as a service" -> Yes
> CYGWIN="  -> ntsec
>
>  I synced the users and passwords with:
>
> mkpasswd   --local   >   /etc/passwd
> mkgroup   --local>   /etc/group

I'm guessing this is your problem right here.  Which user did you do this
as?  If you did this as yourself, it could be that these files are only
readable by the Administrators group, which explains why those users can
log in.  Either those, or some other file needed for the login...
Perhaps the shell (/bin/sh or /bin/bash)?

What does "ls -l /etc/{passwd,group} /bin/sh /bin/bash" print?

>  Now the weird thing is that I am able to log in (ssh in).  I'm part of
> the administrator group.  I set up another user as a "normal" user and
> they are not able to authenticate and get in.  If I promote this user to
> be part of the administrator group he/she is able to get in.
>
>  I read this thread and noticed a poster stated if one read the readme
> in /usr/share/doc/Cygwin that this should cover all I need to know.  I
> did read it and I am not seeing where I made the mistake.  Can anyone
> assist me on where I am making a mistake?
>
> http://www.cygwin.com/ml/cygwin/2005-10/msg01043.html

It would also help if you followed

> Problem reports:   http://cygwin.com/problems.html

just in case you have some other peculiarity on your system.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] |
[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name
changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends
compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough
in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/


--
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: compiler option

2006-03-01 Thread Tim Prince

Basavaraj Hiremath wrote:

Hi,
I am compiling a file(strerror.c) with following
option
-bash-2.05b$ arm-wince-pe-gcc -mcpu=xscale -c -ansi
-D__stdcall= -D_OFF_T_ -DHA
VE_CONFIG_H -I/usr/local/wince/cross-tools/include 
-I. -I./../include  -W -Wal

l -Wtraditional -pedantic  ./strerror.c -o
pic/strerror.o


It's giving following compilation error
/strerror.c:626: error: expected identifier or '('
before string constant
/strerror.c:628: error: expected identifier or '('
before '{' token



file strerror.c has following function

char *
strerror (errnoval)  -> line 626
  int errnoval;
{--> line 628
  const char *msg;
  static char buf[32];
---
-
}


Could somebody tell me, what is the compiler option to
go pass thru this kind of implementation?

I don't know that gcc has an option to accept such non-standard code.  I 
don't see how this is on topic for cygwin, particularly since cross 
compilers aren't part of the distribution.


--
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/



Printing man pages

2006-03-01 Thread George
Generating a PDF from the grep man page, for example, using:

   man -t `man -w grep` | ps2pdf - grep.pdf

which, by default, is actually

   /usr/bin/groff -Tps -mandoc `man -w grep` | ps2pdf - grep.pdf

results in a fairly unattractive PDF file.  The man page title is
dropped from the output, and the top margin is borked.

On the other hand, using

   /usr/bin/groff -Thtml -mandoc `man -w grep` > grep.html

yields something more satisfactory, but not in a format for printing.

I'm finding that reading through the groff man page(s) is like
[obligatory hippo joke], so I'm hoping I'm missing something obvious.

Thanks.

-- 
George

--
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/



Need extended information about Cygserver.

2006-03-01 Thread Riche C
Hi,
Does anyone know if it's possible to use cygserver with another programming 
language or where to find extended information about the service Cygserver?

I have done a program with cygwin that uses IPC and I also have a second 
program written in .NET, those two program needs to communicate with each 
other through IPC.

Thanks
Riche



--
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: Need extended information about Cygserver.

2006-03-01 Thread Corinna Vinschen
On Mar  1 09:41, Riche C wrote:
> Hi,
> Does anyone know if it's possible to use cygserver with another programming 
> language or where to find extended information about the service Cygserver?
> 
> I have done a program with cygwin that uses IPC and I also have a second 
> program written in .NET, those two program needs to communicate with each 
> other through IPC.

That won't work.  Cygserver's IPC functionality can only function
correctly with Cygwin applications.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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/



Syncronizing Windows users and cygwin useres automaticaly

2006-03-01 Thread Mair, Paul
Hallo,
I'm using cygwin and Windows Server 2003.
Is there a possibility to synchronization of the Windows user and the cygwin 
users automatically on the creation of the Windows user without typing mkpasswd 
-local > /etc/passwd.
Or exists a possibility to create a user into cygwin that is than automatically 
createt in Windows.
Thanks for any suggestion
Paul
 

--
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: 1.5.19-4 and gnu make 3.80-1 causes popup console windows from child make processes

2006-03-01 Thread Dave Korn
On 28 February 2006 19:54, Paul Hepworth wrote:

> I upgraded to 1.5.19-4 yesterday and now notice the following new,
> undesirable behavior: empty console windows for child make processes.
> 
> I use the FTE editor and run make from it, the make output being
> displayed inside an FTE window. Before upgrading to 1.5.19-4, no console
> windows popped up, even when make called child $(MAKE) (which in turn
> call child $(MAKE) and so forth).
> 
> Now, I get a pop-up console window for make and each child make. The
> output from all of these still goes to FTE, but the empty popup console
> windows take focus and are annoying.
> This doesn't occur with other external programs launched by FTE, just make.

  Hmm, I wonder if this is what's been making some of my windows start
randomly popping to the front while I'm running a big complex build from bash
in a minimized DOS console involving multiple instances of processes launched
from bash and cmd.exe shells?
 
> Does anyone know how to resolve this annoyance?

  Nope, but I'll perhaps try and figure one out when I get a spare moment.

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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/



what is "download incomplete"?

2006-03-01 Thread Angel Tsankov

When I try to install g++ 3.4.4 I get a "Download Incomplete" message. What 
does it mean?

--
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: what is "download incomplete"?

2006-03-01 Thread Dave Korn
On 01 March 2006 12:54, Angel Tsankov wrote:

> When I try to install g++ 3.4.4 I get a "Download Incomplete" message. What
> does it mean? 

  It means the download did not complete and setup timed out.  Try a different
mirror?

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: what is "download incomplete"?

2006-03-01 Thread Dave Korn
On 01 March 2006 13:09, Angel Tsankov wrote:


(http://cygwin.com/acronyms#PPIOSPE please Angel, thanks!)


>> On 01 March 2006 12:54, Angel Tsankov wrote:
>> 
>>> When I try to install g++ 3.4.4 I get a "Download Incomplete" message.
>>> What does it mean?
>> 
>>  It means the download did not complete and setup timed out.  Try a
>> different mirror?
> 
> Hmm, this happens with at least 4 mirrors, but anyway, I'll try some more...


  Precisely which package is it?  And are you trying to get source as well as
the binaries?  I've just downloaded (without installing) the gcc-3.4.4-1
packages for gcc, gcc-core and gcc-g++ from ftp.mirror.ac.uk without any
trouble.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: what is "download incomplete"?

2006-03-01 Thread Angel Tsankov

On 01 March 2006 13:09, Angel Tsankov wrote:


(http://cygwin.com/acronyms#PPIOSPE please Angel, thanks!)



On 01 March 2006 12:54, Angel Tsankov wrote:


When I try to install g++ 3.4.4 I get a "Download Incomplete" message.
What does it mean?


 It means the download did not complete and setup timed out.  Try a
different mirror?


Hmm, this happens with at least 4 mirrors, but anyway, I'll try some more...



 Precisely which package is it?  And are you trying to get source as well as
the binaries?  I've just downloaded (without installing) the gcc-3.4.4-1
packages for gcc, gcc-core and gcc-g++ from ftp.mirror.ac.uk without any
trouble.


I tried to download w/ or w/o installing the gcc-g++ 3.4.4-1 package from ftp.mirror.ac.uk and it failed. Btw, I connect to the 
servers via a non-transparent HTTP proxy. Might this be the problem and if so, why whith this specific package only? 



--
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 problem with cross compiler

2006-03-01 Thread Basavaraj Hiremath
Hi,
I am not able to compile "Hello World" program
using this compiler in CygWin Environment, but I am
able to compile in Redhat linux enviromnet.

"arm-wince-pe-gcc foo.c" -> does't
work(/usr/local/wince/cross-tools/bin/arm-wince-pe-gcc:
/usr/local/wince/cross-tools/
bin/arm-wince-pe-gcc: cannot execute binary file)

Even if I type
> arm-wince-pe-gcc --v, it give cannot execute binary
file.

am I missing any packages from cygwin?
I have installed win32api package as well.

Thanks in advance.
Raj




__
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/



RE: Cygwin problem with cross compiler

2006-03-01 Thread Dave Korn
On 01 March 2006 14:27, Basavaraj Hiremath wrote:

> Hi,
> I am not able to compile "Hello World" program
> using this compiler in CygWin Environment, but I am
> able to compile in Redhat linux enviromnet.
> 
> "arm-wince-pe-gcc foo.c" -> does't
> work(/usr/local/wince/cross-tools/bin/arm-wince-pe-gcc:
> /usr/local/wince/cross-tools/
> bin/arm-wince-pe-gcc: cannot execute binary file)
> 
> Even if I type
>> arm-wince-pe-gcc --v, it give cannot execute binary file.
> 
> am I missing any packages from cygwin?


  Cygwin doesn't actually let you run Linux executable binaries on windows
directly, you have to recompile them from source code - cygwin's job is to
make that step easy by providing all the headers and libs and function calls
that Linux executables need to have provided in order to compile.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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 with starting services in 1.5.19

2006-03-01 Thread Yadin Y. Goldschmidt

Attention Chris and Corinna
I narrowd the problem down to one snapshot. The sevices start fine on the 
12/27/05

snapshot and don't start on the 12/29/05 snapshot.
I noticed that there were extensive changes by Chris on 12/29 so I have
no idea what change is responsible for this. Maybe you can sort this out.
Yadin.
"Yadin Y. Goldschmidt" wrote in message news:[EMAIL PROTECTED]

Thank you Corrina for your answer although you did not offer a solution.
The problem is very similar to problems Igor Peschansky and others
had in the past with XP SP1, apparently because of changes made on 01/04 
concerning
fhandler_console? I run SP2 but I still have a problem. If I only run one 
service on
reboot it will start but if I try to run 2 services on reboot one would 
hang.

From the command line none will start. There is nothing in cron.log
or sshd.log since they don't even start. No I don't run any firewall 
besides xp
built in firewall and Symantec corporate antivirus. As I said there is no 
problem at all

with 1.5.18 and I never had any problems before. This is very frustrating.
Were the changes to fhandler_console really necessary?
Any other suggestions? Igor, Larry, Chris?
TIA, Yadin.
"Corinna Vinschen"  wrote in message news:[EMAIL PROTECTED]

On Feb 24 14:56, Yadin Y. Goldschmidt wrote:

I still did not get any response, can someone please help?
Since I received no suggestions I ran strace on cygrunsrv -S cron. I 
give

here
the result with 1.5.18 first (cron starts) and 1.5.19 second (cron is 
not

starting)
I only give the end of the strace since the beginning is pretty much the
same.


An strace doesn't help since the most part of the real action happens
in an entirely different process and outside of the Cygwin DLL.

The problem is that I'm running services just fine (also on XP SP2) so
I'm not able to reproduce your problem.  Is it possible that there's
some bad interaction with a virus scanner/ firewall software?  Do you
have some meaningful entry in /var/log/cron.log or /var/log/sshd.log?


Corinna

--
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat









--
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: 1.5.19-4 and gnu make 3.80-1 causes popup console windows from child make processes

2006-03-01 Thread Christopher Faylor
On Wed, Mar 01, 2006 at 12:03:20PM -, Dave Korn wrote:
>On 28 February 2006 19:54, Paul Hepworth wrote:
>>I upgraded to 1.5.19-4 yesterday and now notice the following new,
>>undesirable behavior: empty console windows for child make processes.
>>
>>I use the FTE editor and run make from it, the make output being
>>displayed inside an FTE window.  Before upgrading to 1.5.19-4, no
>>console windows popped up, even when make called child $(MAKE) (which
>>in turn call child $(MAKE) and so forth).
>>
>>Now, I get a pop-up console window for make and each child make.  The
>>output from all of these still goes to FTE, but the empty popup console
>>windows take focus and are annoying.  This doesn't occur with other
>>external programs launched by FTE, just make.
>
>Hmm, I wonder if this is what's been making some of my windows start
>randomly popping to the front while I'm running a big complex build
>from bash in a minimized DOS console involving multiple instances of
>processes launched from bash and cmd.exe shells?

If only there was a simple wossname (patent leather shoes pending) which
illustrated the problem.

Nah.  That trick never works.

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: experimental coreutils-5.94-4

2006-03-01 Thread Corinna Vinschen
On Feb 28 18:44, Corinna Vinschen wrote:
> On Feb 28 16:18, Eric Blake wrote:
> > > On Feb 28 07:30, Eric Blake wrote:
> > > > This version fixes the coreutils bug in pwd when called from /, or from
> > > > anywhere in the // hierarchy.  [...]
> > > 
> > > What happened to the simple, but *always* working idea to call getcwd in
> > > pwd to evaluate the current working directory?  The new implementation
> > > looks a bit maniac.
> > 
> > Ergo, this is an *experimental* release!  I _purposefully_
> > crippled the working getcwd implementation to give the
> > readdir fallback code more exposure (and to root out
> > bugs in the coreutils fallback code).  When cygwin 1.5.20
> > comes out, I will remove the cripple, and /bin/pwd will
> > once again be a super-efficient call to getcwd.
> 
> Uh, I see.  Thanks.

FYI, I've applied a patch today which has two purposes:

- For directories, which are used as mount points, the d_ino was the one
  returned by Windows for this very directory entry.  However, for mount
  points, the inode number which should be returned (and which *is*
  returned by stat) is the inode number of the target directory/ target
  drive, the mount point points to.  This is (hopefully correctly)
  accomplished by the patch.

- As a fallout of this patch, mount points are now *always* listed with
  readdir, even if they are dangling with no underlying file or
  directory of the same name.  For eveyone who didn't understand this
  sentence, consider the both default mount points in /usr:

C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)

  Without my patch, an `ls' on /usr didn't return the directories bin
  and lib, except you created files or directories of this name in the
  C:\cygwin\usr directory.

  Now, with the patch, they are listed even though they don't exists in
  reality on the drive.  The additional advantage is that the shell's
  file completion now also works for these paths.

Please test the next snapshot from http://cygwin.com/snapshots/ for
this functionality.


Thanks,
Corinna


-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: Cygwin problem with cross compiler

2006-03-01 Thread Basavaraj Hiremath
Hi,
Where can I get gcc source code, I want to cross
compile it for Wince/ARM and related tools as well.

Thanks in advance.
Raj


--- Dave Korn <[EMAIL PROTECTED]> wrote:

> On 01 March 2006 14:27, Basavaraj Hiremath wrote:
> 
> > Hi,
> > I am not able to compile "Hello World" program
> > using this compiler in CygWin Environment, but I
> am
> > able to compile in Redhat linux enviromnet.
> > 
> > "arm-wince-pe-gcc foo.c" -> does't
> >
>
work(/usr/local/wince/cross-tools/bin/arm-wince-pe-gcc:
> > /usr/local/wince/cross-tools/
> > bin/arm-wince-pe-gcc: cannot execute binary file)
> > 
> > Even if I type
> >> arm-wince-pe-gcc --v, it give cannot execute
> binary file.
> > 
> > am I missing any packages from cygwin?
> 
> 
>   Cygwin doesn't actually let you run Linux
> executable binaries on windows
> directly, you have to recompile them from source
> code - cygwin's job is to
> make that step easy by providing all the headers and
> libs and function calls
> that Linux executables need to have provided in
> order to compile.
> 
> 
> cheers,
>   DaveK
> -- 
> Can't think of a witty .sigline today
> 
> 
> --
> 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/
> 
> 


__
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/



Re: Shells hang during script execution

2006-03-01 Thread Paul Clements

Christopher Faylor wrote:


It's also in the latest snapshot:  http://cygwin.com/snapshots/


I got the latest cygwin dll snapshot (20060227) a few days ago and I've 
been stress testing ksh with this new dll since.


The good news is that the hang issues (signal related) that I was seeing 
appear to be fixed by your patches. I've not seen the either of the two 
hangs with this snapshot. Thanks Christopher.


The bad news is that I'm now seeing a segmentation violation (4 or 5 
times so far) that I was not seeing before. I don't know if fixing the 
hangs has allowed me to get to this point, or if the crashes are due to 
the patches (hard to see how that could be the case). I'm having trouble 
figuring out how the crash occurred, because the last address in the 
stackdump looks bogus. I'm not sure if there's any significance to that 
(could it be a signal handler that was injected into the stack, or could 
this be due to stack corruption, or does this look normal?). Anyway, 
below is the stack trace and (very simple) test script I'm running. Any 
ideas or suggestions on things to try?


--
Paul


$ cat ksh.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=0022FBFC
eax= ebx= ecx=610FE084 edx=0022F064 esi=00484283 
edi=00486C1D

ebp=0022E848 esp=0022E830 program=c:\lk\bin\ksh.exe, pid 1816, thread main
cs=001B ds=0023 es=0023 fs=003B gs= ss=0023
Stack trace:
Frame Function  Args
0022E848  0022FBFC  (00484660, , 0009C05C, 0041E1F2)
0022E938  0040AB39  (00486C18, 0022E950, 0020, 004896C8)
0022E968  0040A0FA  (00486C18, 0020, 004895F0, )
0022E9B8  0040CFA8  (00486C50, , 00486B38, )
0022EA38  0040C4C1  (00486C50, , 004895F4, 0100)
0022EAB8  0040C665  (00486C80, , 00486888, )
0022EB38  0040CAFD  (004867B8, , 0022EB88, 0003)
0022EBB8  0040C68E  (004867B8, , 0022EBE8, 0041A317)
0022EC38  0040C68E  (00487350, , 0022EC68, 00416A9A)
0022EC68  004166FB  (004850E8, 0001, , 0030)
0022EEC8  004162B2  (0002, 6115E7B4, 00480090, 77DBD397)
0022EF78  61005BC8  (0022EFD0, 0022EFFC, C0150008, )
0022FF88  61005EB3  (, , , )
End of stack trace


Corresponding symbols:

22fbfc ?? (this address looks bogus)
40ab39 expand (40ab39 is after the call to waitlast)
40a0fa evalstr
40cfa8 comexec


The test case is very simple. I just run three copies of ksh like this:

ksh ./test.sh

--- test.sh ---

n=${1:-1000}
i=0
while [ $i -lt $n ]
do
x=`echo a:$i | cut -d: -f1`
i=$(( $i + 1 ))
m=$(( $i % 1000 ))
if [ $m -eq 0 ]; then echo -n $i: $$:; date; fi
done


--
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: 1.5.19-4 and gnu make 3.80-1 causes popup console windows from child make processes

2006-03-01 Thread Dave Korn
On 01 March 2006 15:41, Christopher Faylor wrote:

> On Wed, Mar 01, 2006 at 12:03:20PM -, Dave Korn wrote:
>> On 28 February 2006 19:54, Paul Hepworth wrote:
>>> I upgraded to 1.5.19-4 yesterday and now notice the following new,
>>> undesirable behavior: empty console windows for child make processes.
>>> 
>>> I use the FTE editor and run make from it, the make output being
>>> displayed inside an FTE window.  Before upgrading to 1.5.19-4, no
>>> console windows popped up, even when make called child $(MAKE) (which
>>> in turn call child $(MAKE) and so forth).
>>> 
>>> Now, I get a pop-up console window for make and each child make.  The
>>> output from all of these still goes to FTE, but the empty popup console
>>> windows take focus and are annoying.  This doesn't occur with other
>>> external programs launched by FTE, just make.
>> 
>> Hmm, I wonder if this is what's been making some of my windows start
>> randomly popping to the front while I'm running a big complex build
>> from bash in a minimized DOS console involving multiple instances of
>> processes launched from bash and cmd.exe shells?
> 
> If only there was a simple wossname (patent leather shoes pending) which
> illustrated the problem.
> 
> Nah.  That trick never works.
> 
> cgf


  Well, if I can /find/ a way to make it happen which doesn't involve building
a massive project using a hugely expensive proprietary vhdl compiler and
simulator, I'll let you know, but at the moment, any potential testcase should
be considered 'unreduced' and not exactly simple :)


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: Cygwin problem with cross compiler

2006-03-01 Thread Dave Korn
On 01 March 2006 15:47, Basavaraj Hiremath wrote:


> Hi,
> Where can I get gcc source code, I want to cross
> compile it for Wince/ARM and related tools as well.
> 
> Thanks in advance.
> Raj
> 
> 
> --- Dave Korn <[EMAIL PROTECTED]> wrote:

 PLEASE  DON'T DO THIS!

  See http://cygwin.com/acronyms#PCYMTNQREAIYR for why!


  As to the source code for gcc, you can get it from whereever you got those
linux binaries from.  That's the beauty of the GPL!

  Alternatively you could download the source from one of the mirrors listed
at http://gcc.gnu.org/.  But it's possible the version you were using on your
linux machine has some arm-wince-specific patches added to it, so you'd be
better off with the source from your original compiler if you can find it.

  Building cross-compilers can be complicated, and it's way off-topic for the
cygwin list.  You probably want to use the crossgcc list if you have any
trouble building it.  

http://sourceware.org/ml/crossgcc



cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: experimental coreutils-5.94-4

2006-03-01 Thread Eric Blake
Corinna Vinschen  cygwin.com> writes:

> 
> FYI, I've applied a patch today which has two purposes:
> 
> - For directories, which are used as mount points, the d_ino was the one
>   returned by Windows for this very directory entry.  However, for mount
>   points, the inode number which should be returned (and which *is*
>   returned by stat) is the inode number of the target directory/ target
>   drive, the mount point points to.  This is (hopefully correctly)
>   accomplished by the patch.

Worked for me on a self-built dll!  Thanks for an awesome patch.

> 
>   Now, with the patch, they are listed even though they don't exists in
>   reality on the drive.  The additional advantage is that the shell's
>   file completion now also works for these paths.

Now, what would be really cool is if the link count of directories with
mount points could be updated, to match the fact that readdir can now see
mount points:

$ cd /usr/
$ ls -dl .
drwxr-xr-x+ 21 eblake Domain Users 0 Mar  1 09:22 ./
$ mkdir /cygdrive/c/cygwin/usr/lib
$ ls -dl .
drwxr-xr-x+ 22 eblake Domain Users 0 Mar  1 09:26 ./

Oops - see how the link count changed from 21 to 22 when I had a physical
backing directory?  find (and any other tool that optimizes a recursive
search to look at (link count - 2) subdirectories and then quit) might
get confused by the fact that the number of subdirs given by readdir is
no longer consistent with the link count.

-- 
Eric Blake



--
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: sshd_conf and AllowGroups - how to make work with non-primary groups?

2006-03-01 Thread Igor Peshansky
On Tue, 28 Feb 2006, Mark A. Ziesemer wrote:

> "Igor Peshansky" <[EMAIL PROTECTED]> wrote:

.  Thanks.

> > On Mon, 27 Feb 2006, Mark A. Ziesemer wrote:
> >
> >> I, too, am trying to lock down ssh access.  Using OpenSSH's
> >> AllowGroups configuration option looks like it would fit my needs
> >> perfectly, but it doesn't work!  More specifically, it ends up
> >> denying all users, unless the user's PRIMARY group (as defined in
> >> /etc/passwd) is within AllowGroups.
> >>
> >> I already found and read the following related posts, none of which
> >> actually resolve the issue:
> >> http://www.cygwin.com/ml/cygwin/2003-03/msg00128.html
> >> http://www.cygwin.com/ml/cygwin/2000-03/msg00591.html
> >> http://thread.gmane.org/gmane.os.cygwin/73007 ("sshd_conf and local
> >> groups" started 12/31/2005)
> >>
> >> Using AllowUsers works as expected - but this is an administrative
> >> nightmare.  Ideally, I'd like to create a group called "SshUsers" and
> >> set "AllowGroups SshUsers".  This works, but only if I set the needed
> >> user accounts in /etc/passwd to use this as their primary group.
> >> Some users need their primary group to remain otherwise for other
> >> reasons...
> >>
> >> I'm guessing this is more of an issue with the Cygwin user commands
> >> than it is with the OpenSSH implementation.  I DID run both mkpasswd
> >> and mkgroup, and both my /etc/passwd and /etc/group files are
> >> populated. However, running "groups myuser" or "id -Gn myuser"
> >> returns only the primary group - "Domain Users".  The results are
> >> identical whether running bash locally or through an ssh connection.
> >>
> >> I'm currently running "CYGWIN_NT-5.2 z 1.5.20s(0.154/4/2) 20060227
> >> 13:07:35 i686 Cygwin", but have been able to reproduce this back to
> >> 1.5.18, etc...
> >>
> >> Any assistance would be greatly appreciated - thanks!
> >
> > Let's start here:
> >
> >> Problem reports:   http://cygwin.com/problems.html
> >
> > In particular, for the group to be recognized by Cygwin, it needs to
> > be in /etc/group.  I would guess that you're trying to set up a domain
> > group... You didn't say exactly what mkgroup options you used to
> > update /etc/group, so it may simply be that you're missing the
> > necessary groups there (and thus Cygwin is unable to determine group
> > membership).  But a proper problem report based on the above
> > guidelines (one that includes an attached output of "cygcheck -svr" on
> > your system) would allow us to track this down further.
>
> Requested cygcheck attached, along with my sshd_config, group, and
> passwd files.  (Files are from reproducing the issue on another box for
> privacy concerns, which explains why the Cygwin version is slightly
> different from my original post.)  In this example, all accounts are
> local, with no domain involved.
>
> Additionally, the following is logged to my Application Event Log:
>
> Source: sshd, Category: None, Event ID: 0, User: NT AUTHORITY\SYSTEM ...
> The following information is part of the event: sshd: PID 1504: User
> MyUser from TestBox not allowed because none of user's groups are listed
> in AllowGroups.

Ah, ok, so it's not a permissions issue.

> I do believe I misunderstood how the "groups" and "id" commands were
> working.  I see that running "groups" without the username displays all
> groups for the current user (not all groups on the system), where "group
> MyUser" displays only the primary group.  Some test output:
>
> [EMAIL PROTECTED] ~
> $ groups
> None root Administrators Users SshUsers
>
> [EMAIL PROTECTED] ~
> $ id
> uid=1004(MyUser) gid=513(None)
> groups=0(root),513(None),544(Administrators),545(Users),1005(SshUsers)
>
> [EMAIL PROTECTED] ~
> $ groups MyUser
> MyUser : None
>
> [EMAIL PROTECTED] ~
> $ id -Gn MyUser
> None

Not surprising, as "groups" essentially calls "id -Gn".

> I'm guessing the OpenSSH sshd service must run some form of the later
> pair, which returns only the primary group, and not all associated
> Windows groups...

This may be true (i.e., groups aren't listed properly)...  If you want to
strip down sshd code to just the piece that queries for the groups, run
that on Linux and Cygwin and demonstrate inconsistent results, I'm sure
Corinna would be interested in such a testcase.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.

Re: experimental coreutils-5.94-4

2006-03-01 Thread Eric Blake
Eric Blake  byu.net> writes:

> Oops - see how the link count changed from 21 to 22 when I had a physical
> backing directory?  find (and any other tool that optimizes a recursive
> search to look at (link count - 2) subdirectories and then quit) might
> get confused by the fact that the number of subdirs given by readdir is
> no longer consistent with the link count.
> 

As an example, with findutils-4.3.0-1 and cygwin built today (oldfind in
the 4.3.0 package uses the algorithm of the find utility in 4.2.27; the
find in 4.3.0 changed algorithms to fts() which avoids the subdir
optimization):

$ cd /usr
$ oldfind . -maxdepth 2 -mindepth 1 -name 'lib*' | wc
 70  701435
$ oldfind . -noleaf -maxdepth 2 -mindepth 1 -name 'lib*' | wc
755 755   16168
$ mkdir /cygdrive/c/cygwin/usr/lib
$ oldfind . -maxdepth 2 -mindepth 1 -name 'lib*' | wc
755 755   16168

Notice that without a physical /usr/lib under the mount point, oldfind did
not traverse into /usr/lib unless I used -noleaf to disable the link
count optimization, because /usr/lib appeared too late in the readdir.

-- 
Eric Blake



--
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: Shells hang during script execution

2006-03-01 Thread Christopher Faylor
On Wed, Mar 01, 2006 at 10:47:59AM -0500, Paul Clements wrote:
>Christopher Faylor wrote:
>
>>It's also in the latest snapshot:  http://cygwin.com/snapshots/
>
>I got the latest cygwin dll snapshot (20060227) a few days ago and I've 
>been stress testing ksh with this new dll since.
>
>The good news is that the hang issues (signal related) that I was seeing 
>appear to be fixed by your patches. I've not seen the either of the two 
>hangs with this snapshot. Thanks Christopher.
>
>The bad news is that I'm now seeing a segmentation violation (4 or 5 
>times so far) that I was not seeing before. I don't know if fixing the 
>hangs has allowed me to get to this point, or if the crashes are due to 
>the patches (hard to see how that could be the case). I'm having trouble 
>figuring out how the crash occurred, because the last address in the 
>stackdump looks bogus. I'm not sure if there's any significance to that 
>(could it be a signal handler that was injected into the stack, or could 
>this be due to stack corruption, or does this look normal?). Anyway, 
>below is the stack trace and (very simple) test script I'm running. Any 
>ideas or suggestions on things to try?

The obvious thing to try would be to actually inspect the source code
up the stack around where the error occurred.  You'll have to make a
debugging version of ksh for that.

You can also set CYGWIN=error_start:/path/to/gdb.exe to have cygwin pop
up an instance of gdb whenever the program is about to die.

cgf

>$ cat ksh.exe.stackdump
>Exception: STATUS_ACCESS_VIOLATION at eip=0022FBFC
>eax= ebx= ecx=610FE084 edx=0022F064 esi=00484283 
>edi=00486C1D
>ebp=0022E848 esp=0022E830 program=c:\lk\bin\ksh.exe, pid 1816, thread main
>cs=001B ds=0023 es=0023 fs=003B gs= ss=0023
>Stack trace:
>Frame Function  Args
>0022E848  0022FBFC  (00484660, , 0009C05C, 0041E1F2)
>0022E938  0040AB39  (00486C18, 0022E950, 0020, 004896C8)
>0022E968  0040A0FA  (00486C18, 0020, 004895F0, )
>0022E9B8  0040CFA8  (00486C50, , 00486B38, )
>0022EA38  0040C4C1  (00486C50, , 004895F4, 0100)
>0022EAB8  0040C665  (00486C80, , 00486888, )
>0022EB38  0040CAFD  (004867B8, , 0022EB88, 0003)
>0022EBB8  0040C68E  (004867B8, , 0022EBE8, 0041A317)
>0022EC38  0040C68E  (00487350, , 0022EC68, 00416A9A)
>0022EC68  004166FB  (004850E8, 0001, , 0030)
>0022EEC8  004162B2  (0002, 6115E7B4, 00480090, 77DBD397)
>0022EF78  61005BC8  (0022EFD0, 0022EFFC, C0150008, )
>0022FF88  61005EB3  (, , , )
>End of stack trace
>
>
>Corresponding symbols:
>
>22fbfc ?? (this address looks bogus)
>40ab39 expand (40ab39 is after the call to waitlast)
>40a0fa evalstr
>40cfa8 comexec
>
>
>The test case is very simple. I just run three copies of ksh like this:
>
>ksh ./test.sh
>
>--- test.sh ---
>
>n=${1:-1000}
>i=0
>while [ $i -lt $n ]
>do
>x=`echo a:$i | cut -d: -f1`
>i=$(( $i + 1 ))
>m=$(( $i % 1000 ))
>if [ $m -eq 0 ]; then echo -n $i: $$:; date; fi
>done

--
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: Hanging at GetModuleFileName in inside_kernel function

2006-03-01 Thread Paul Clements

Christopher Faylor wrote:

On Tue, Feb 28, 2006 at 11:10:05AM -0800, Peter Rehley wrote:


It seems like an improvement.  It didn't hang, but after about 4000  
iterations of the test script it got a segmentation fault.  It ran  
for 12 hours with another configure script in a separate window or  
about 11 hours and 45 minutes longer than before.  This is with the  
20060227 snapshot.


Attached is the stackdump.



...which is a stackdump deep within bash itself, pretty far from any
cygwin functions.


Just a point of interest here (maybe). I'm also seeing segfaults, but 
I'm running ksh (see thread: "shells hang during script execution"). 
Anyway, I just noticed that the last stack address (which looks bogus), 
as well as the EBP register value, are the same in the stack traces that 
both Peter and I posted:


Stack trace:
Frame Function  Args
0022E848  0022FBFC  (00484660, , 0009C05C, 0041E1F2)

Leading up to this are all pdksh functions:

40ab39 expand (after call to waitlast)
40a0fa evalstr
40cfa8 comexec
[...]

(in Peter's stack trace, these were all bash functions)

It would seem very coincidental for these two crashes not to be related 
somehow.


Peter, any chance you could maybe list the function names (in bash) that 
lead up the stack to this? Perhaps there's some common function that is 
causing this?


Thanks,
Paul


--
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: Shells hang during script execution

2006-03-01 Thread Ernie Coskrey
>>Here's a description of a second hang condition we were encountering, along 
>>with a patch for it.
>>
>>
>>The application (pdksh in this case) does a read on a pipe, which eventually 
>>calls pipe.cc fhandler_pipe::read in Thread 1.  This creates a new cygthread 
>>with "read_pipe()" as the function.  Then >it calls th->detach(read_state).
>>
>>When the hang occurs, the new thread gets terminated early, before
>>cygthread::stub() can call "callfunc()".  You see the error message
>>"erroneous thread activation".  I'm not sure what's causing the thread
>>to fail activation, but the result is, the read_state semaphore never
>>gets signalled.
>
>Sorry but this is another band-aid around a problem.  The real problem
>is that the code shouldn't get into the state that you are describing.
>That's why cygwin prints an error message - it is a serious problem.
>Making the code deal gracefully with a problem like this isn't going
>to solve the underlying issue.
>
>If you can figure out what's causing the erroneous thread activation
>then that will be the real culprit.
>
>cgf
>

OK, I believe I've tracked this down.

The problem occurs when we get into a read_pipe cygthread constructor 
(cygthread::cygthread()) with a NULL h and an ev that is signalled.  When this 
condition exists, a hang can occur as follows:

1) Creator thread calls detach().  This waits for pipe_state to be released 
twice
2) read_pipe thread calls read_pipe, reads data, and releases the semaphore 
twice
3) Creator thread goes to WFSO(*this, INFINITE) which returns immediately 
because ev was set when the thread was created.
4) Creator thread initiates another read_pipe cygthread to read more pipe data.

At this point, there's a race: if the Creator thread gets past the 
initialization part of the constuctor, which sets __name(name), BEFORE the 
original read_pipe thread gets to the part of cygthread::stub() that sets 
info->__name = NULL, then you'll see the hang.  The new pipe_read will give the 
"erroneous thread activation" message, and the parent will be stuck waiting for 
data that will never arrive.

The only path that leaves an unused thread structure in a state where h==NULL 
and ev is signalled is cygthread::release().  So the fix is simple:

$ cat cygthread.cc.udiff
--- cygthread.cc.ORIG   2006-02-22 10:57:42.123931300 -0500
+++ cygthread.cc2006-03-01 12:59:23.255023000 -0500
@@ -268,7 +268,12 @@
 cygthread::release (bool nuke_h)
 {
   if (nuke_h)
+{
 h = NULL;
+
+if (ev)
+  ResetEvent (ev);
+}
 #ifdef DEBUGGING
   __oldname = __name;
   debug_printf ("released thread '%s'", __oldname);


--
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: Shells hang during script execution

2006-03-01 Thread Christopher Faylor
On Wed, Mar 01, 2006 at 01:01:46PM -0500, Ernie Coskrey wrote:
>>>Here's a description of a second hang condition we were encountering, along 
>>>with a patch for it.
>>>
>>>
>>>The application (pdksh in this case) does a read on a pipe, which eventually 
>>>calls pipe.cc fhandler_pipe::read in Thread 1.  This creates a new cygthread 
>>>with "read_pipe()" as the function.  Then >it calls th->detach(read_state).
>>>
>>>When the hang occurs, the new thread gets terminated early, before
>>>cygthread::stub() can call "callfunc()".  You see the error message
>>>"erroneous thread activation".  I'm not sure what's causing the thread
>>>to fail activation, but the result is, the read_state semaphore never
>>>gets signalled.
>>
>>Sorry but this is another band-aid around a problem.  The real problem
>>is that the code shouldn't get into the state that you are describing.
>>That's why cygwin prints an error message - it is a serious problem.
>>Making the code deal gracefully with a problem like this isn't going
>>to solve the underlying issue.
>>
>>If you can figure out what's causing the erroneous thread activation
>>then that will be the real culprit.
>>
>>cgf
>>
>
>OK, I believe I've tracked this down.
>
>The problem occurs when we get into a read_pipe cygthread constructor
>(cygthread::cygthread()) with a NULL h and an ev that is signalled.
>When this condition exists, a hang can occur as follows:
>
>1) Creator thread calls detach().  This waits for pipe_state to be released 
>twice
>2) read_pipe thread calls read_pipe, reads data, and releases the semaphore 
>twice
>3) Creator thread goes to WFSO(*this, INFINITE) which returns immediately 
>because ev was set when the thread was created.
>4) Creator thread initiates another read_pipe cygthread to read more pipe data.
>
>At this point, there's a race: if the Creator thread gets past the
>initialization part of the constuctor, which sets __name(name), BEFORE
>the original read_pipe thread gets to the part of cygthread::stub()
>that sets info->__name = NULL, then you'll see the hang.  The new
>pipe_read will give the "erroneous thread activation" message, and the
>parent will be stuck waiting for data that will never arrive.
>
>The only path that leaves an unused thread structure in a state where
>h==NULL and ev is signalled is cygthread::release().  So the fix is
>simple:
>
>$ cat cygthread.cc.udiff
>--- cygthread.cc.ORIG   2006-02-22 10:57:42.123931300 -0500
>+++ cygthread.cc2006-03-01 12:59:23.255023000 -0500
>@@ -268,7 +268,12 @@
> cygthread::release (bool nuke_h)
> {
>   if (nuke_h)
>+{
> h = NULL;
>+
>+if (ev)
>+  ResetEvent (ev);
>+}
> #ifdef DEBUGGING
>   __oldname = __name;
>   debug_printf ("released thread '%s'", __oldname);

Nice analysis.  Thank you.  I think it's easier to fix this by just
making the ev event auto-reset then this condition would be caught in
terminate thread, as it was meant to be.

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/



No effect of SE_BACKUP_NAME privilege on cygwin?

2006-03-01 Thread Christian Franke

Enabling SE_BACKUP_NAME has no effect for cygwin programs.

The attached program demonstrates the issue.
It retrieves the attributes of a normally inaccessible file without and 
with SE_BACKUP_NAME.

(The file should be present on XP with C:\ as system drive)

If compiled with "-mno-cygwin" and running as admin on XP Prof, the 
second access succeeds as expected:


GetFileAttributes failed: 5
SeBackupPrivilege enabled!
GetFileAttributes = 0x0026

But if running as a cygwin program on 1.5.19, the result is:

GetFileAttributes failed: 5
SeBackupPrivilege enabled!
GetFileAttributes failed: 5

The privilege can be enabled, but has no effect - bug or feature ?-)

Thanks for any help.

Christian

#include 
#include 

static void Check()
{
DWORD attr = GetFileAttributes("C:/System Volume 
Information/MountPointManagerRemoteDatabase");
if (attr == ~(DWORD)0)
printf("GetFileAttributes failed: %ld\n", GetLastError());
else
printf("GetFileAttributes = 0x%04lx\n", attr); // Usually 
0x0026, Archive|System|Hidden
}

static bool GetBackupPrivil()
{
HANDLE t;
if(!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &t)) 
{
printf("OpenProcessToken failed: %ld\n", GetLastError()); 
return false;
}
TOKEN_PRIVILEGES tp;
if(!LookupPrivilegeValue(NULL, SE_BACKUP_NAME, &tp.Privileges[0].Luid)) 
{
printf("LookupPrivilegeValue failed: %ld\n", GetLastError()); 
return false;
}
tp.PrivilegeCount   = 1;
tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
AdjustTokenPrivileges(t, FALSE, &tp, 0, NULL, NULL);
if (GetLastError() != ERROR_SUCCESS) {
printf("AdjustTokenPrivileges failed: %ld\n", GetLastError()); 
return false;
}
CloseHandle(t);
printf(SE_BACKUP_NAME" enabled!\n");
return true;
}

main()
{
Check();

if (!GetBackupPrivil())
return 1;

Check();
return 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: 1.5.19-4 and gnu make 3.80-1 causes popup console windows from child make processes

2006-03-01 Thread Paul

I upgraded to 1.5.19-4 yesterday and now notice the following new,
undesirable behavior: empty console windows for child make processes.

I use the FTE editor and run make from it, the make output being
displayed inside an FTE window.  Before upgrading to 1.5.19-4, no
console windows popped up, even when make called child $(MAKE) (which
in turn call child $(MAKE) and so forth).

Now, I get a pop-up console window for make and each child make.  The
output from all of these still goes to FTE, but the empty popup console
windows take focus and are annoying.  This doesn't occur with other
external programs launched by FTE, just make.


I fixed the issue by modifying FTE. When I wrote earlier that I'd tried 
passing CREATE_NO_WINDOW to the CreateProcess that runs the make, I was 
wrong. FTE had a huge #if section, and I ended up changing the inactive 
one. When I added CREATE_NO_WINDOW to the real CreateProcess, make 
stopped popping up console windows.
(I still don't know why only make seems to do it and why it didn't until 
I upgraded cygwin. But I think the CreateProcess *should* need to have 
teh CREATE_NO_WINDOW parameter, and the problem is gone; so, I'm happy!)


I'm also happy I joined the list in time to see the post about 
CYGWIN=error_start! I've been cussing about cygwin's lack of useful core 
 file for ages (i.e., I can't do gdb core and then bt to see a stack 
trace with symbols and parameters). Using error_start should help!



Paul

--
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: 1.5.19-4 and gnu make 3.80-1 causes popup console windows from child make processes

2006-03-01 Thread Christopher Faylor
On Wed, Mar 01, 2006 at 12:32:01PM -0700, Paul wrote:
>I'm also happy I joined the list in time to see the post about 
>CYGWIN=error_start! I've been cussing about cygwin's lack of useful core 
> file for ages (i.e., I can't do gdb core and then bt to see a stack 
>trace with symbols and parameters). Using error_start should help!

http://cygwin.com/cygwin-ug-net/using-cygwinenv.html

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: Syncronizing Windows users and cygwin useres automaticaly

2006-03-01 Thread Igor Peshansky
On Wed, 1 Mar 2006, Mair, Paul wrote:

.  Thanks.

> Hallo,
> I'm using cygwin and Windows Server 2003.
> Is there a possibility to synchronization of the Windows user and the
> cygwin users automatically on the creation of the Windows user without
> typing mkpasswd -local > /etc/passwd.
> Or exists a possibility to create a user into cygwin that is than
> automatically createt in Windows.
> Thanks for any suggestion

Well, you could contribute the "useradd" and "groupadd" scripts that
invoke "net user" and "net group" respectively, and then run "mkpasswd -u
username >> /etc/passwd" and "mkgroup -g groupname >> /etc/group"...  I'm
sure this kind of functionality would be well received.

However, adding the user via the regular Windows means would still require
explicit synchronization.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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: No effect of SE_BACKUP_NAME privilege on cygwin?

2006-03-01 Thread Corinna Vinschen
On Mar  1 20:28, Christian Franke wrote:
> Enabling SE_BACKUP_NAME has no effect for cygwin programs.

You're expecting that you can use Windows functions in a POSIX
application without disturbing the way Cygwin works.  That's a bit
dangerous.  A Cygwin application's main thread is not running under the
process token, but under a derived impersonation token.  This is true
for every thread in Cygwin.  So, instead of using OpenProcessToken, you
should be able to accomplish what you want by calling OpenThreadToken.

However, I'm wondering if a Cygwin application should always try by
itself to request the SE_BACKUP_NAME privilege.  It would simplify file
access for all privileged processes.  Hmm.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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 with snapshot 20060227 ?

2006-03-01 Thread Angelo Graziosi


Usually I build ROOT (a Cern application) under Cygwin and this was done
also a few  day ago (with cygwin 1.5.19-4 and with the snapshots before
20060227).

Now with the snapshot 20060227 the build fails with:

  undefined reference to '___isnand'

I have noted that with this snapshot, math.h declares extern '__isnand'.

If it is extern, where is it defined?


Are these things related to the post:

  

and its replies?


Reinstalling cygwin 1.5.19-4 or the snap 20060224 the build of ROOT is
fine.


Cheers,

Angelo


--
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: No effect of SE_BACKUP_NAME privilege on cygwin?

2006-03-01 Thread Christian Franke

Corinna Vinschen wrote:

On Mar  1 20:28, Christian Franke wrote:
  

Enabling SE_BACKUP_NAME has no effect for cygwin programs.



You're expecting that you can use Windows functions in a POSIX
application without disturbing the way Cygwin works.  That's a bit
dangerous.


Agree.

(I tried to add a "regtool save ..." action to allow backup of registry 
hives from scripts.

This calls RegSaveKey which needs SE_BACKUP_NAME.)



  A Cygwin application's main thread is not running under the
process token, but under a derived impersonation token.  This is true
for every thread in Cygwin.  So, instead of using OpenProcessToken, you
should be able to accomplish what you want by calling OpenThreadToken.
  


Yes, it works, thanks!

Already tried this before but gave up too early, because it didn't work 
in the non-cygwin version ;-)

I didn't realize that the main thread has no token by default...



However, I'm wondering if a Cygwin application should always try by
itself to request the SE_BACKUP_NAME privilege.  It would simplify file
access for all privileged processes.  Hmm.
  


Sounds reasonable.
SE_RESTORE_NAME is requested somewhere in the code, but not SE_BACKUP_NAME.

Christian


--
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/



rxvt and line-drawing characters

2006-03-01 Thread Andrew DeFaria
I like using rxvt as my terminal. Recently I discovered pstree (don't 
know how I missed it before). pstree doesn't appear to be in Cygwin but 
it does appear to be on Linux. I often use rxvt in conjunction with ssh 
to log into Linux machines. Now pstree supports a -G to use line drawing 
characters. This works under xterm but not under rxvt. How does one use 
line-drawing characters in rxvt?

--
Do people in France use American ticklers?


--
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: rxvt and line-drawing characters

2006-03-01 Thread Brian Dessent
Andrew DeFaria wrote:

> I like using rxvt as my terminal. Recently I discovered pstree (don't
> know how I missed it before). pstree doesn't appear to be in Cygwin but
> it does appear to be on Linux. I often use rxvt in conjunction with 
It's been included in the psmisc cygwin package for some time.

ssh
> to log into Linux machines. Now pstree supports a -G to use line drawing
> characters. This works under xterm but not under rxvt. How does one use
> line-drawing characters in rxvt?

You need a font that has the DOS/OEM characters instead of the standard
codepage 1252 / ISO 8858-1 character set.  If you search around there is
a patched version of lucida console (called "lucida consoleP" or
luconP.zip) that has this.  You also need to set TERM (-tn) to
rxvt-cygwin-native I think.

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/



Re: experimental coreutils-5.94-4

2006-03-01 Thread Corinna Vinschen
On Mar  1 16:44, Eric Blake wrote:
> Corinna Vinschen  cygwin.com> writes:
> >   Now, with the patch, they are listed even though they don't exists in
> >   reality on the drive.  The additional advantage is that the shell's
> >   file completion now also works for these paths.
> 
> Now, what would be really cool is if the link count of directories with
> mount points could be updated, to match the fact that readdir can now see
> mount points:

I've checked in a patch which should accomplish that.  Note that /proc
and /cygdrive always have a link count of 1 now, as for remote
directories.  In case of /proc, the real link count would only
coincidentally match the number of subdirectories, while in case of
/cygdrive the evaluation of the link count would result in accessing the
floppy drive for each stat.  Since the link count of 1 is known to work
even with older find versions, that seems the best compromise to me.
Other than that, the link count should be correct now for local
directories.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: Problems with snapshot 20060227 ?

2006-03-01 Thread Corinna Vinschen
On Mar  1 22:55, Angelo Graziosi wrote:
> 
> 
> Usually I build ROOT (a Cern application) under Cygwin and this was done
> also a few  day ago (with cygwin 1.5.19-4 and with the snapshots before
> 20060227).
> 
> Now with the snapshot 20060227 the build fails with:
> 
>   undefined reference to '___isnand'

This has been discussed on this list yesterday.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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: No effect of SE_BACKUP_NAME privilege on cygwin?

2006-03-01 Thread Corinna Vinschen
On Mar  1 23:06, Christian Franke wrote:
> Corinna Vinschen wrote:
> >  A Cygwin application's main thread is not running under the
> >process token, but under a derived impersonation token.  This is true
> >for every thread in Cygwin.  So, instead of using OpenProcessToken, you
> >should be able to accomplish what you want by calling OpenThreadToken.
> 
> Yes, it works, thanks!
> 
> Already tried this before but gave up too early, because it didn't work 
> in the non-cygwin version ;-)
> I didn't realize that the main thread has no token by default...

Yes, that's a bit irritating.

> >However, I'm wondering if a Cygwin application should always try by
> >itself to request the SE_BACKUP_NAME privilege.  It would simplify file
> >access for all privileged processes.  Hmm.
> >  
> 
> Sounds reasonable.
> SE_RESTORE_NAME is requested somewhere in the code, but not SE_BACKUP_NAME.

I've applied a patch.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
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/