Re: Hard links in tar, not untaring as expected

2007-01-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Sally, Gene on 1/22/2007 11:50 AM: > drwxr-xr-x UserName GroupName 0 2007-01-18 16:35:22 test/ > -rw-r--r-- UserName GroupName 9 2007-01-18 16:35:22 test/hardlink > -rw-r--r-- UserName GroupName 0 2007-01-18 16:35:22 test/orig-file link >

Re: "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?

2007-01-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Mark A. Ziesemer on 1/22/2007 6:11 PM: > > I do see one issue with implementing the OS-group-calls into Cygwin - > Win95/98 don't have any concept of user groups. This would have to be > accounted for... Maybe I'll convert the > http:/

Re: Best Windows Utility Ever!

2007-01-22 Thread Morgan Gangwere
On 1/22/07, Buchbinder, Barry (NIH/NIAID) [E] <[EMAIL PROTECTED]> wrote: zzapper wrote on Monday, January 22, 2007 5:50 PM: > I recently came across a (Windows) utility which stores the last 25 > things (clips) that you've copied and pasted. Click on the utility in > your system tray and up pops

Re: "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?

2007-01-22 Thread Mark A . Ziesemer
Corinna Vinschen cygwin.com> writes: > > Since Cygwin already lets the underlying OS take care of much of the > > security (handling passwords, etc.), can't Cygwin just ask Windows for the > > user's groups when needed, to? > > How? Consider that getgrent just enumerates /etc/group. It doesn't

Re: Questions about porting from Linux to Windows...

2007-01-22 Thread jano trouba
OK thanks a lot for your time and answer... I read the User's Guide... Almost everything is clear now... I still have a last question : In the examples you gave me of different applications (Hello), they are both LINKED via cgwin. Unfortunatley my project if a major GUI program (about 80 0

Re: No SSH in Cygwin

2007-01-22 Thread Larry Hall (Cygwin)
Matthew Woehlke wrote: DougPPMA wrote: In the SETUP.exe I downloaded, I tried to load all, I looked in the network packages to ensure SSH was enabled, there no SSH. Try a different mirror? If that doesn't work, . -- Larry Hall h

Re: Can't start cron daemon in Cygwin 1.5.23 under WinXP SP2

2007-01-22 Thread Brian Dessent
Steve Rowley wrote: > (1) Starting it via the cron-config script produces this: Normally this is the only thing you have to do. > >In case of problem, examine the log file for cron, > >/var/log/cron.log, and the Windows event log > >for information about the problem cron is having.

RE: Best Windows Utility Ever!

2007-01-22 Thread Buchbinder, Barry \(NIH/NIAID\) [E]
zzapper wrote on Monday, January 22, 2007 5:50 PM: > I recently came across a (Windows) utility which stores the last 25 > things (clips) that you've copied and pasted. Click on the utility in > your system tray and up pops a 5 by 5 grid. Each pigeon hole in the > grid shows enough of the clip to h

Re: Perl bug?

2007-01-22 Thread Reini Urban
Corinna Vinschen schrieb: On Jan 22 11:26, Yitzchak Scott-Thoennes wrote: Hi, consider the following statement: $a = "a" x (100 * 1024 * 1024) When you create a script which does this over and over again, you'll observe a strange memory problem. Can you show your script? #!/usr/bin/perl $

Can't start cron daemon in Cygwin 1.5.23 under WinXP SP2

2007-01-22 Thread Steve Rowley
For several years, I've been a satisfied user of Cygwin's cron on Windows (happy enough that I trust it to do my daily backups, which is considerable trust). Cron might not be easy to install and get working, but it tends to stay working once it's happy, and that keeps me happy. Now that I've rep

Re: No SSH in Cygwin

2007-01-22 Thread Matthew Woehlke
DougPPMA wrote: In the SETUP.exe I downloaded, I tried to load all, I looked in the network packages to ensure SSH was enabled, there no SSH. Try a different mirror? -- Matthew Vs lbh pna ernq guvf jvgubhg fbsgjner, lbh ner n FREVBHF areq! -- Nqncgrq sebz Znggurj Jva (ivz-qri znvyvat yvfg)

No SSH in Cygwin

2007-01-22 Thread DougPPMA
Hello: I'm at a new site trying to load Cygwin on a Win/XP so I can get SSH, amoung other things. I can telnet, I can FTP,I can BASH, etc. I cannot SSH. In the SETUP.exe I downloaded, I tried to load all, I looked in the network packages to ensure SSH was enabled, there no SSH. All my research

Re: Perl bug?

2007-01-22 Thread Corinna Vinschen
On Jan 22 11:26, Yitzchak Scott-Thoennes wrote: > > Hi, > > > > consider the following statement: > > > > $a = "a" x (100 * 1024 * 1024) > > > > When you create a script which does this over and over again, you'll > > observe a strange memory problem. > > Can you show your script? #!/usr/bin/per

Re: When ssh'd in, cannot run MS compiler /Zi debug option

2007-01-22 Thread Corinna Vinschen
On Jan 22 11:16, Mike Yoder wrote: > Thanks for replying, Corinna. I installed cygwin just a week or two > ago. To my knowledge I haven't touched /etc/group (after mkgroup). > The relevent parts of /etc/passwd and /etc/group follow. When the > Administrator account ssh's in, it becomes Admistrat

Re: Perl bug?

2007-01-22 Thread Yitzchak Scott-Thoennes
> Hi, > > consider the following statement: > > $a = "a" x (100 * 1024 * 1024) > > When you create a script which does this over and over again, you'll > observe a strange memory problem. Can you show your script? > By stracing I found that for each of these statements the following > happens: >

Re: When ssh'd in, cannot run MS compiler /Zi debug option

2007-01-22 Thread Mike Yoder
On Jan 19 18:13, Mike Yoder wrote: > I see that using password authentication does make the problem go away > for accounts local to the machine. But if I ssh into this machine > using a domain account and use password authentication, whoami still > tells me that I'm the sshd_server. (I built /et

run.1.1.10-1 fails in W98 with cygwin 1.5.23

2007-01-22 Thread Rodrigo Medina
Hi, I am using cygwin-1.5.23 in a W98 box. It works fine. I have only found that "run.1.1.10-1" does not hide the Windows console window as it should. run.1.1.9 is OK bye RM Cygwin Configuration Diagnostics Current System Time: Mon Jan 22 14:00:06 2007 Windows 98 SE Ver 4.10 Build Path

Hard links in tar, not untaring as expected

2007-01-22 Thread Sally, Gene
Hi, I'm wrestling with an interesting problem. Considering a tar file with the following contents (tar tvzf file.tgz) drwxr-xr-x UserName GroupName 0 2007-01-18 16:35:22 test/ -rw-r--r-- UserName GroupName 9 2007-01-18 16:35:22 test/hardlink -rw-r--r-- UserName GroupName 0 2007-01-18 16:35:22

Re: cygwin source question

2007-01-22 Thread Igor Peshansky
On Mon, 22 Jan 2007, Yitzchak Scott-Thoennes wrote: > Dave Korn writes: > > On 21 January 2007 14:38, Christopher Layne wrote: > > > I notice in some places, there are double-negates, like: > > > > > > me->read_ready |= ret || !!(events & (FD_READ | FD_ACCEPT | FD_CLOSE)); > > > > > > What's the r

Perl bug?

2007-01-22 Thread Corinna Vinschen
Hi, consider the following statement: $a = "a" x (100 * 1024 * 1024) When you create a script which does this over and over again, you'll observe a strange memory problem. By stracing I found that for each of these statements the following happens: "a" --> malloc (2 bytes) x 100 Meg

Re: Questions about porting from Linux to Windows...

2007-01-22 Thread Corinna Vinschen
On Jan 22 17:25, jano trouba wrote: > >If you create static libs which don't use Cygwin functions, then you're > >build native Windows libs. That's no problem and has nothing to do with > >Cygwin anymore. You're off the hook. > > > >If you build static libs which use Cygwin functions, your applic

Re: Questions about porting from Linux to Windows...

2007-01-22 Thread jano trouba
Thanks Corinna for your answer.. It is not yet entirely clear for me... . This is a NO-NO on this list. I apologize for that. As I said I discovered cygwin and your site this weekend... If you create static libs which don't use Cygwin functions, then you're build native Windows libs. T

Re: Questions about porting from Linux to Windows...

2007-01-22 Thread Corinna Vinschen
On Jan 22 16:21, jano trouba wrote: > >From: Tim Prince This is a NO-NO on this list. http://cygwin.com/acronyms/#PCYMTNQREAIYR > >You are going way beyond the scope of this list. A mingw .a library could > >be linked into an MSVC build, since it tries to avoid conflicting run-time > >l

Re: I would like a post deleted

2007-01-22 Thread Andrew Schulman
> Ironically enough, by reposting the message, there are now two copies of it > in the archives. > > I think Bobby may have inadvertently quoted it as well. > > Oops. > > I see it's available on nabble and gmane as well. And mail-archive.org, and > MARC. Amd who knows how many other li

Re: Questions about porting from Linux to Windows...

2007-01-22 Thread jano trouba
From: Tim Prince <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: cygwin@cygwin.com Subject: Re: Questions about porting from Linux to Windows... Date: Mon, 22 Jan 2007 05:52:28 -0800 You are going way beyond the scope of this list. A mingw .a library could be linked into an MSVC build,

Re: "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?

2007-01-22 Thread Corinna Vinschen
On Jan 22 15:18, Mark A. Ziesemer wrote: > Since Cygwin already lets the underlying OS take care of much of the > security (handling passwords, etc.), can't Cygwin just ask Windows for the > user's groups when needed, to? How? Consider that getgrent just enumerates /etc/group. It doesn't know fo

Re:

2007-01-22 Thread Mark A . Ziesemer
Corinna Vinschen cygwin.com> writes: > > >> When "id" is called without a username, it calls the getgroups(...) > > >> function > > >> which appears to work as expected. However, when a specific username is > > >> passed, even the username of the current user, getugroups(...) is called, > > >> an

Re: Questions about porting from Linux to Windows...

2007-01-22 Thread Tim Prince
[EMAIL PROTECTED] wrote: Hello I am in the process of porting a huge application (> 700 000 lines of code ; C ; Unix/Linux) to Windows. I will not be using cygwin to port the GUI, but the project is based on lots of static libraries. Thus it prompted me with several questions, both techni

Re: "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?

2007-01-22 Thread Corinna Vinschen
On Jan 22 06:03, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Corinna Vinschen on 1/22/2007 2:34 AM: > >> When "id" is called without a username, it calls the getgroups(...) > >> function > >> which appears to work as expected. However, when a specific use

RE: file descriptiors

2007-01-22 Thread Dave Korn
On 22 January 2007 07:38, Wynfield Henman wrote: > But, "make check" gives me the following information. > > ...Entering directory `/usr/src/assuan/libassuan-1.0.1/tests' > fdpassing[3648.4] DBG: -> OK Pleased to meet you > fdpassing[3648.4] DBG: <- # descriptor 4 is in flight > fdpassing[3648.4]

Re: file descriptiors

2007-01-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Avoid http://cygwin.com/acronyms/#TOFU - message reformatted. According to Wynfield Henman on 1/22/2007 12:38 AM: >> >> Why don't you try it and see? Or at least give us a simple test case >> that >> shows what you want to have happen, and why it isn

Re: "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?

2007-01-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Corinna Vinschen on 1/22/2007 2:34 AM: >> When "id" is called without a username, it calls the getgroups(...) function >> which appears to work as expected. However, when a specific username is >> passed, even the username of the current

Questions about porting from Linux to Windows...

2007-01-22 Thread jano trouba
Hello I am in the process of porting a huge application (> 700 000 lines of code ; C ; Unix/Linux) to Windows. I will not be using cygwin to port the GUI, but the project is based on lots of static libraries. Thus it prompted me with several questions, both technical and commercial. I wi

Re: cygwin source question

2007-01-22 Thread Christopher Layne
On Mon, Jan 22, 2007 at 10:42:19AM -, Dave Korn wrote: > ... so no reason not to choose whichever you like the best. > > cheers, > DaveK I prefer the idiom that doesn't resemble perl :). Also, if it were me, I'd just be checking for zero or non-zero. The rest seems like a lot of

Re: Snapshot speed on managing files

2007-01-22 Thread Marco atzeri
--- Christopher Layne <[EMAIL PROTECTED]> ha scritto: > > If you have a moment, would it be possible for you > to > test your testcase on 20060309? I know this is going > to send ridiculous, but if you have a moment I'm > curious > what your results are. > 20060309 snapshot is not available. An

RE: cygwin source question

2007-01-22 Thread Dave Korn
On 22 January 2007 08:19, Yitzchak Scott-Thoennes wrote: > > Some people prefer (expr) ? 1 : 0, which looks a lot worse to me than > !!(expr). > Compiles to the exact same thing at -O0 and at -O2, as it happens... /tmp $ gcc -x c -S -o - - int foo (int argc) { return (argc == 23) ? 1 : 0

Re: "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?

2007-01-22 Thread Corinna Vinschen
On Jan 21 16:50, Mark A. Ziesemer wrote: > Cygwin doesn't appear to properly support returning multiple groups for a > specific user, other than the current user (and only when not specifying the > current user's username.) > > When "id" is called without a username, it calls the getgroups(...) fu

Re: cygwin source question

2007-01-22 Thread Yitzchak Scott-Thoennes
Dave Korn writes: > On 21 January 2007 14:38, Christopher Layne wrote: > > I notice in some places, there are double-negates, like: > > > > me->read_ready |= ret || !!(events & (FD_READ | FD_ACCEPT | FD_CLOSE)); > > > > What's the rationale for these? To enforce either a 0 or 1, to be directly >