Re: Coreutils (mv) bug

2005-06-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Christopher Faylor on 6/23/2005 1:11 PM: > > Since managed mounts are rare you could solve 99% of the problems by > doing what I mentioned. Just don't do it for managed mounts. Is there an easy way to see if a filename belongs to a mana

RE: Problem installing CPAN module

2005-06-23 Thread Sonam Chauhan
Thanks a lot Lasse - your PID_ZOMBIE -> PID_UNUSED rename trick worked a treat. > > At that time, cygcheck showed the core 'cygwin' version as 1.5.16-1. The > > 'cygwin' version is now 1.5.17-1. The versions of Cygwin Perl (5.8.6-4) > > and CPAN Proc::ProcessTable version (0.39) have not changed.

standard c++ shared libs?

2005-06-23 Thread Kiyoshi Akima
When I build the hello world program in C++ with printf(), the program compiles and strips to 3K. When I use cout <<, the program balloons to 270K. Please tell me I'm just missing a switch or three to link with the DLL/shared version of the standard C++ library. I'm compiling like this: g++

Re: How to make DLLs in cygwin for MSVC and BCB

2005-06-23 Thread Cliff Hones
Max Kaehn wrote: > On Thu, 2005-06-23 at 18:18 +0100, Dave Korn wrote: >> Sorry, but why isn't that 4k at the *TOP* of the stack? It sure looks >>that way to me, unless cygwin stacks grow upward! > > You're mixing the metaphors. :-) The top of a stack is where you push > something down onto the

RE: How to make DLLs in cygwin for MSVC and BCB

2005-06-23 Thread Gary R. Van Sickle
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Max Kaehn > Sent: Thursday, June 23, 2005 2:09 PM > To: cygwin@cygwin.com > Subject: RE: How to make DLLs in cygwin for MSVC and BCB > > On Thu, 2005-06-23 at 18:18 +0100, Dave Korn wrote: > > Sorry,

Re: mounting network shares to make it persistent.

2005-06-23 Thread Andrew DeFaria
Corinna Vinschen wrote: On Jun 23 11:47, Monkey Pet wrote: I want to be able to access a resource (aka map) and make it available the next time a user logs into ssh. I am using cywin with the open ssh server. I would like know answers to the following questions: 1. Can mount be given a userna

Re: mounting network shares to make it persistent.

2005-06-23 Thread Tony Karakashian
> > net use z: share\\fs2 password /USER:qadomain\\Administrator > > /PERSISTENT:No Change that to /persistent:yes -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ:

Re: Coreutils (mv) bug

2005-06-23 Thread Corinna Vinschen
On Jun 23 18:11, Eric Blake wrote: > Furthermore, access() seems like it may be more efficient than open() in > terms of the underlying work that must be done to implement it. Not really. On NT, access requires to open the file, too. Corinna -- Corinna Vinschen Please, send m

Re: mounting network shares to make it persistent.

2005-06-23 Thread Corinna Vinschen
On Jun 23 11:47, Monkey Pet wrote: > I want to be able to access a resource (aka map) and make it available > the next time a user logs into ssh. I am using cywin with the open > ssh server. > > I would like know answers to the following questions: > 1. Can mount be given a username/password

Re: Bash Command History Scroll Back Problem with Multi-line Commands

2005-06-23 Thread Brian Dessent
ImranKhan wrote: > Yup, thanks guys, I found out the exact source is the prompt setting: > > This does not work: export PS1="\e[32m\w$\e[0m " Change this to: export PS1="\[\e[32m\]\w$\[\e[0m\] " -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://c

Re: Coreutils (mv) bug

2005-06-23 Thread Christopher Faylor
On Thu, Jun 23, 2005 at 07:00:31PM +, Eric Blake wrote: >> On Thu, Jun 23, 2005 at 06:11:42PM +, Eric Blake wrote: >> >It would be really nice if there were a new flag to access() that supressed >> >.exe expansion, and succeeded only if the exact spelling matched. Then >> >my test to see i

RE: How to make DLLs in cygwin for MSVC and BCB

2005-06-23 Thread Max Kaehn
On Thu, 2005-06-23 at 18:18 +0100, Dave Korn wrote: > Sorry, but why isn't that 4k at the *TOP* of the stack? It sure looks > that way to me, unless cygwin stacks grow upward! You're mixing the metaphors. :-) The top of a stack is where you push something down onto the stack. The bottom of th

Re: Coreutils (mv) bug

2005-06-23 Thread Eric Blake
> On Thu, Jun 23, 2005 at 06:11:42PM +, Eric Blake wrote: > >It would be really nice if there were a new flag to access() that supressed > >.exe expansion, and succeeded only if the exact spelling matched. Then > >my test to see if .exe should be appended would be as simple as > >access("foo",

Re: Bash Command History Scroll Back Problem with Multi-line Commands

2005-06-23 Thread ImranKhan
Yup, thanks guys, I found out the exact source is the prompt setting: This does not work: export PS1="\e[32m\w$\e[0m " This works fine: export PS1="\w$ " I inherited this bashrc, so the first settings are hieroglyphics to me. Seeing as I don't care much about colour anyway, I'll just remove i

Re: Bash Command History Scroll Back Problem with Multi-line Commands

2005-06-23 Thread Brian Dessent
ImranKhan wrote: > This falls in the annoyance category. Anyone have problems using scroll > back history with commands that are long and split over muliple lines in the > terminal? No problem at all here. This is usually caused by improper use (or lack of) \[ and \] in the prompt to tell bash

mounting network shares to make it persistent.

2005-06-23 Thread Monkey Pet
I want to be able to access a resource (aka map) and make it available the next time a user logs into ssh. I am using cywin with the open ssh server. I would like know answers to the following questions: 1. Can mount be given a username/password and domain? 2. Is the net use command th

Re: Bash Command History Scroll Back Problem with Multi-line Commands

2005-06-23 Thread Eric Blake
> This falls in the annoyance category. Anyone have problems using scroll > back history with commands that are long and split over muliple lines in the > terminal? > > What happens is that the screen doesn't get refreshed properly and the > cursor seems to placed in the wrong spot.. Please repo

Re: Coreutils (mv) bug

2005-06-23 Thread Christopher Faylor
On Thu, Jun 23, 2005 at 06:11:42PM +, Eric Blake wrote: >> $ ln -s /bin/sh foo >> $ mv foo bar >> mv: cannot stat `foo.exe': No such file or directory > >I'm not sure if this was the issue that appeared on the list last month, but >it is one of the issues I was already aware of and trying to fi

Bash Command History Scroll Back Problem with Multi-line Commands

2005-06-23 Thread ImranKhan
This falls in the annoyance category. Anyone have problems using scroll back history with commands that are long and split over muliple lines in the terminal? What happens is that the screen doesn't get refreshed properly and the cursor seems to placed in the wrong spot.. driving me nuts! No pr

Re: Coreutils (mv) bug

2005-06-23 Thread Eric Blake
> $ ln -s /bin/sh foo > $ mv foo bar > mv: cannot stat `foo.exe': No such file or directory I'm not sure if this was the issue that appeared on the list last month, but it is one of the issues I was already aware of and trying to fix for coreutils-5.3.0-7. The underlying problem is that there is

Re: [spam] Re: Windows rights

2005-06-23 Thread Corinna Vinschen
On Jun 23 18:17, Dave Korn wrote: > Original Message > >From: Corinna Vinschen > >Sent: 23 June 2005 18:10 > > > On Jun 23 12:02, Igor Pechtchanski wrote: > >> No, SYSTEM and LocalSystem are two names for the same user. It's known > >> as SYSTEM in Cygwin, but Windows calls it LocalSystem

More robust color terminal

2005-06-23 Thread Laran Evans
So, I'm working with 8 colors in my rxvt terminal. It seems that's all that's available. Where this really becomes a drag is when trying to apply different color themes in Vim. Most light colored themes all look the same, with colors reducing to the 8 available. So, my question is this: Can I

RE: How to make DLLs in cygwin for MSVC and BCB

2005-06-23 Thread Dave Korn
Original Message >From: Max Kaehn >Sent: 23 June 2005 18:16 > You'll need to find some way to arrange that the 4K is available at > the bottom of the stack of your main thread for as long as you have > cygwin1.dll loaded. > --- > extern "C" int mainCRTStartup (); > > extern "C" int __

RE: [spam] Re: Windows rights

2005-06-23 Thread Dave Korn
Original Message >From: Corinna Vinschen >Sent: 23 June 2005 18:10 > On Jun 23 12:02, Igor Pechtchanski wrote: >> No, SYSTEM and LocalSystem are two names for the same user. It's known >> as SYSTEM in Cygwin, but Windows calls it LocalSystem. Perhaps the above >> link should be amended t

Re: How to make DLLs in cygwin for MSVC and BCB

2005-06-23 Thread Max Kaehn
On Thu, 2005-06-23 at 14:05 +0200, Patrick Rotsaert wrote: > Ok, but this was only a small test program to see if I manage to load > cygwin1.dll functions. > The plan is to do this in a DLL, later on. I guess cygwin_dll_init will > then have to be called in DllMain, yes? > But then, what happens

Coreutils (mv) bug

2005-06-23 Thread Max Bowsher
$ ln -s /bin/sh foo $ mv foo bar mv: cannot stat `foo.exe': No such file or directory The target of the symlink has an .exe suffix, but the symlink itself does not. However, mv thinks it does. Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http

Re: [spam] Re: Windows rights

2005-06-23 Thread Corinna Vinschen
On Jun 23 12:02, Igor Pechtchanski wrote: > No, SYSTEM and LocalSystem are two names for the same user. It's known as > SYSTEM in Cygwin, but Windows calls it LocalSystem. Perhaps the above > link should be amended to clarify this. No, it's know in Windows as SYSTEM. The string "LocalSystem" on

Re: Coreutils (ln) bugs

2005-06-23 Thread Eric Blake
> Bug 1: > $ ln foo bar > where the real name is foo.exe > works ok, but erroneously returns exit status 1 Thanks for the report. It is even weirder than that - if foo.exe is not executable, it complains: $ touch abc.exe $ ln abc 123 ln: creating hard link `123' to `abc': No such file or directo

RE: [spam] Re: Windows rights

2005-06-23 Thread Igor Pechtchanski
Ugh. Top-posting. Reformatted. BTW, there was no need to Cc: me, I read the list. Please make sure your mailer respects the Reply-To: header. On Thu, 23 Jun 2005, Christophe Delarue wrote: > -Original Message- > From: [EMAIL PROTECTED] On Behalf Of Igor Pechtchanski > Sent: Thursday,

RE: Windows rights

2005-06-23 Thread Larry Hall
At 10:00 AM 6/23/2005, you wrote: >Do the third paragraph >" An important restriction of this method is that a process started >without a password cannot access network shares which require >authentication. >This also applies to subprocesses which switched user context without a >password. >Th

Re: 1.5.17: problem building GNU screen

2005-06-23 Thread Christopher Faylor
On Thu, Jun 23, 2005 at 06:36:56AM -0600, Eric Blake wrote: >According to Christopher Faylor on 6/18/2005 9:45 AM: >> IMO, the posted check for fifos is flawed in that it assumes that >> writing to a fifo will not block if there is no reader on the fifo. >> That's not true for cygwin. > >The posted

RE: [spam] Re: Windows rights

2005-06-23 Thread Christophe Delarue
Thank's for your answer My server is Ms 2000. I read the url you gave me (I have allready read). I do not well understand the section switching user context Does the second paragraph "On NT and Windows 2000 the SYSTEM user has these privileges and can run services such as sshd." says that I

Coreutils (ln) bugs

2005-06-23 Thread Max Bowsher
Bug 1: $ ln foo bar where the real name is foo.exe works ok, but erroneously returns exit status 1 Bug 2: $ ln foo 1234 where the real name is foo.exe produces 1234.exe correctly, but $ ln foo 12345 produces 12345 without an .exe suffix. Max. -- Unsubscribe info: http://cygwin.com/ml/#

Re: Windows rights

2005-06-23 Thread Igor Pechtchanski
On Thu, 23 Jun 2005, Christophe DELARUE wrote: > Hi cygwinner. > > I try to use cygwin to make remote compilation on a windows machine. I > installed inetd. I've got a problem with my rights (id -a) when I am > on the target hosts named myServerCygwin. They differ when I type my > password or not

Re: 1.5.17: problem building GNU screen

2005-06-23 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Christopher Faylor on 6/18/2005 9:45 AM: > IMO, the posted check for fifos is flawed in that it assumes that > writing to a fifo will not block if there is no reader on the fifo. > That's not true for cygwin. The posted check for fifos us

Re: How to make DLLs in cygwin for MSVC and BCB

2005-06-23 Thread Patrick Rotsaert
you should do all your argv processing before calling cygwin_dll_init(), because it will trash your argv and argc. Ok, but this was only a small test program to see if I manage to load cygwin1.dll functions. The plan is to do this in a DLL, later on. I guess cygwin_dll_init will then have to be

RE: cygwin crashes after every ~ 10th command and starts up only every ~ 4th try...

2005-06-23 Thread Dave Korn
Original Message >From: D. Bollmann >Sent: 23 June 2005 04:06 > Hi Dave, thanks for your long and detailed reply :) No problem! > > > Since a couple of hours cygwin crashes all the time on > > >execute the xserver batch file several times > > >The same xterm than crashes after only

Re: Compile errors, Cygwin issue or gcc?

2005-06-23 Thread Gerrit P. Haase
Rebirth Seph wrote: I believe it is called "toolchain". I installed it but do not know a whole lot more about it. Since it is not a Cygwin package and it seems that you got it from somewhere else, please ask the vendor of this toolchain for support first. Gerrit -- Unsubscribe info: h

Windows rights

2005-06-23 Thread Christophe DELARUE
Hi cygwinner. I try to use cygwin to make remote compilation on a windows machine. I installed inetd. I've got a problem with my rights (id -a) when I am on the target hosts named myServerCygwin. They differ when I type my password or not (auto login). 1) First problem I put

Re: cygwin crashes after every ~ 10th command and starts up only every ~ 4th try...

2005-06-23 Thread Arturus Magi
D. Bollmann wrote: > What happens if you switch your computer off and let it cool down for a > few hours? Odd behaviour like this is very common when a PC is overheating, > and sometimes a PC can be OK in the winter and spring and then start to > experience overheating problems when th

Re: setup alternatives using RPM

2005-06-23 Thread Jason Pyeron
On Wed, 22 Jun 2005, Brian Dessent wrote: This means you won't be able to install/remove any of those packages with rpm because it's impossible to replace in-use files under Windows and rpm does not know how to do it the windows-way. http://www.thescarms.com/vbasic/FilesInUse.asp so the cyg