[PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Igor Pechtchanski
Hi, This patch adds most of the capability of the script from http://cygwin.com/ml/cygwin-apps/2003-08/msg00106.html to cygcheck. It is triggered by the -c flag to cygcheck. Integrity is a rather strong word, actually, as all this checks for is the existence of files and directories, but this

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Charles Wilson
Christopher Faylor wrote: I'll check this in but it would be nice if (WBNI) this used a mingw gzip library rather than calling gzip directly. That's a fair amount of work but I could resurrect the zlib library in winsup if necessary. I wonder why setup is using gzip rather than bzip2 for the

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Christopher Faylor
On Sun, Aug 10, 2003 at 10:23:47AM +1000, Robert Collins wrote: On Sun, 2003-08-10 at 10:12, Christopher Faylor wrote: I don't see how that will ever be possible given the windows problems with stdio and GUI apps. I guess we could make setup a console utility but that would result in the ugly

Re: [PATCH] Add support for ioctl TIOCLINUX, function 6 (get key modifiers) on a TTY

2003-08-14 Thread Christopher Faylor
On Sat, Aug 09, 2003 at 01:00:53PM +0200, Pavel Tsekov wrote: Should the silence indicate a lack of interest ? It means I haven't had time to research it yet. I won't have time for at least a week. Corinna alert: Please let me investigate this one. Thanks. cgf

Re: [PATCH] Add support for ioctl TIOCLINUX, function 6 (get key modifiers) on a TTY

2003-08-14 Thread Pavel Tsekov
Hello, Should the silence indicate a lack of interest ? Pavel -- COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test -- 1. GMX TopMail - Platz 1 und Testsieger! 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger! 3. Arcor - 4. web.de - 5. T-Online

Questions and a RFC [was Re: Assignment from Nicholas Wourms arrived]

2003-08-14 Thread Nicholas Wourms
[EMAIL PROTECTED] wrote: FYI, your copyright assignment form has been received by Red Hat. Patch away! Any outstanding issues besides argz/envz? Not yet, I've got a few things I'd like to contribute to newlib first. However, I do have a few questions... 1)Did my MUA strip the tabs from the

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Igor Pechtchanski
On Sat, 9 Aug 2003, Christopher Faylor wrote: On Sat, Aug 09, 2003 at 03:52:55PM -0400, Igor Pechtchanski wrote: On Sat, 9 Aug 2003, Christopher Faylor wrote: On checking this patch a little further, I see that it gives a misleading OK when the package file is missing. Could you detect that

[PATCH] Package content search and listing functionality for cygcheck

2003-08-14 Thread Igor Pechtchanski
This patch adds the functionality to cygcheck to list (using the -l or --list-package flag) the contents of and search (using the -f or --find-package flag and passing the absolute paths to the files) for files in the *installed* packages. Please test this and feel free to give feedback. I've

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Igor Pechtchanski
Ping! This is pretty urgent, as the code that's currently in CVS won't work and has a buffer overflow. Igor On Sun, 10 Aug 2003, Igor Pechtchanski wrote: On Sat, 9 Aug 2003, Christopher Faylor wrote: On Sat, Aug 09, 2003 at 03:52:55PM -0400, Igor Pechtchanski wrote: On Sat, 9 Aug

Re: [PATCH] Consider extensions for special names in managed mode

2003-08-14 Thread Igor Pechtchanski
On Wed, 13 Aug 2003, Corinna Vinschen wrote: On Wed, Aug 13, 2003 at 10:19:08AM -0400, Igor Pechtchanski wrote: Yeah. I promised a patch, didn't I? *Sigh*. Igor == 2003-08-13 Igor Pechtchanski [EMAIL

Re: Questions and a RFC [was Re: Assignment from Nicholas Wourms arrived]

2003-08-14 Thread Corinna Vinschen
On Tue, Aug 12, 2003 at 06:55:11PM -0400, Nicholas Wourms wrote: 1)Did my MUA strip the tabs from the patch? The only reason I ask is Yes. The patch already contained spaces. I see you're using Mozilla/NS7 so I'm wondering how this happened. AFAIK, Mozilla doesn't touch attachments. [BTW,

Re: Questions and a RFC [was Re: Assignment from Nicholas Wourmsarrived]

2003-08-14 Thread Charles Wilson
Nicholas Wourms wrote: Planning ahead for future possibilities is always a good thing, so in that respect this seems like a sound idea. Since we are already dealing with ABI breakage, I thought I'd float this now to see what people think. Would a change like this be of benefit to Cygwin?

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Robert Collins
On Sun, 2003-08-10 at 02:12, Christopher Faylor wrote: On Thu, Aug 07, 2003 at 06:50:10PM -0400, Igor Pechtchanski wrote: Hi, Also some kind of functionality which would allow cygcheck to query the same files as the web search would be really cool. Something like a: cygcheck

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Igor Pechtchanski
On Sat, 9 Aug 2003, Christopher Faylor wrote: [snip] Btw, have you considered some kind of rpm -f functionality? That would allow a user to do a: cygcheck -f /usr/bin/ls.exe fileutils-4.1-2 Also some kind of functionality which would allow cygcheck to query the same files as the web

Assignment from Nicholas Wourms arrived

2003-08-14 Thread Corinna Vinschen
FYI, your copyright assignment form has been received by Red Hat. Patch away! Any outstanding issues besides argz/envz? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc.

Re: [PATCH] readdir (): Do not set 'errno' if end of dir is encountered

2003-08-14 Thread Christopher Faylor
On Tue, Aug 05, 2003 at 04:49:13AM +0200, Pavel Tsekov wrote: 2003-08-05 Pavel Tsekov [EMAIL PROTECTED] * fhandler_disk_file.cc (fhandler_cygdrive::readdir): Do not change 'errno' if end of directory condition is encountered as per SUSv2. * fhandler_proc.cc

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Christopher Faylor
On Thu, Aug 07, 2003 at 06:50:10PM -0400, Igor Pechtchanski wrote: Hi, This patch adds most of the capability of the script from http://cygwin.com/ml/cygwin-apps/2003-08/msg00106.html to cygcheck. It is triggered by the -c flag to cygcheck. Integrity is a rather strong word, actually, as all

Re: Questions and a RFC [was Re: Assignment from Nicholas Wourms arrived]

2003-08-14 Thread Corinna Vinschen
On Wed, Aug 13, 2003 at 11:44:36AM -0400, Nicholas Wourms wrote: [EMAIL PROTECTED] wrote: What are you trying to implement? If you need lstat, you're perhaps better off implementing this in Cygwin instead of newlib. ftw/nftw. Per Gerrit's suggestion on the list, I looked at OpenBSD's

[PATCH] Consider extensions for special names in managed mode

2003-08-14 Thread Igor Pechtchanski
On Wed, 13 Aug 2003, Ronald Landheer-Cieslak wrote: On Tue, Aug 12, 2003 at 01:39:18PM -0400, Igor Pechtchanski wrote: Ronald, I think there might be a bug in the way managed mode figures special filenames. Try simply touch aux instead of touch aux.x. If that works, it'll confirm my

Re: [PATCH]: Add some interoperability macros to sys/param.h

2003-08-14 Thread Corinna Vinschen
On Thu, Aug 07, 2003 at 03:23:51PM -0400, Nicholas Wourms wrote: 2003-08-07 Nicholas Wourms [EMAIL PROTECTED] * include/sys/param.h (setbit): Add new bitmap related macro. (clrbit): Likewise. (isset): Likewise. (isclr): Likewise. (howmany): Add new counting/rounding

[PATCH] pwdgrp::read_group(): Don't call free() twice with the same address

2003-08-14 Thread David Rothenberger
Hi, This patch avoids the heap corruption that was causing the problem described in http://www.cygwin.com/ml/cygwin/2003-08/msg00364.html. In pwdgrp::read_group(), there is loop to free allocated gr_mem buffers. That loop checks to see if gr_mem != null_ptr, but does not set gr_mem to null_ptr

[PATCH]: Add some interoperability macros to sys/param.h

2003-08-14 Thread Nicholas Wourms
Hi, This patch adds 11 new macros to Cygwin's sys/param.h. They include: setbit(a,i) clrbit(a,i) isset(a,i) isclr(a,i) howmany(x, y) rounddown(x, y) roundup(x, y) roundup2(x, y) powerof2(x) MIN(a,b) MAX(a,b) I find some to be very useful for many mundane routines (esp. MIN/MAX). It should be

Re: Questions and a RFC [was Re: Assignment from Nicholas Wourmsarrived]

2003-08-14 Thread Nicholas Wourms
[EMAIL PROTECTED] wrote: Nicholas Wourms wrote: Planning ahead for future possibilities is always a good thing, so in that respect this seems like a sound idea. Since we are already dealing with ABI breakage, I thought I'd float this now to see what people think. Would a change like this be

Re: [PATCH] Consider extensions for special names in managed mode

2003-08-14 Thread Corinna Vinschen
On Wed, Aug 13, 2003 at 10:19:08AM -0400, Igor Pechtchanski wrote: 2003-08-13 Igor Pechtchanski [EMAIL PROTECTED] * path.cc (special_name): Add checks for some specials followed by a . and a FIXME comment. Ok, I've applied it. I guess Chris can work from that, too. Corinna

Re: [PATCH] Consider extensions for special names in managed mode

2003-08-14 Thread Corinna Vinschen
On Wed, Aug 13, 2003 at 10:19:08AM -0400, Igor Pechtchanski wrote: Yeah. I promised a patch, didn't I? *Sigh*. Igor == 2003-08-13 Igor Pechtchanski [EMAIL PROTECTED] * path.cc (special_name): Add

Re: stdint.h define of INT32_MIN

2003-08-14 Thread Gerrit P. Haase
Hallo Christopher, Am Freitag, 8. August 2003 um 21:31 schriebst du: Hallo , Hello I'm german;) [...] I've applied the above patch. Thank you. Gerrit -- =^..^=

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Robert Collins
On Sun, 2003-08-10 at 10:12, Christopher Faylor wrote: I don't see how that will ever be possible given the windows problems with stdio and GUI apps. I guess we could make setup a console utility but that would result in the ugly black console box flashing up whenever you start setup.exe.

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Christopher Faylor
On Sat, Aug 09, 2003 at 12:12:11PM -0400, Christopher Faylor wrote: On Thu, Aug 07, 2003 at 06:50:10PM -0400, Igor Pechtchanski wrote: Hi, This patch adds most of the capability of the script from http://cygwin.com/ml/cygwin-apps/2003-08/msg00106.html to cygcheck. It is triggered by the -c flag

Re: [PATCH] Checking integrity of installed packages in cygcheck

2003-08-14 Thread Igor Pechtchanski
On Sat, 9 Aug 2003, Christopher Faylor wrote: On Sat, Aug 09, 2003 at 12:12:11PM -0400, Christopher Faylor wrote: On Thu, Aug 07, 2003 at 06:50:10PM -0400, Igor Pechtchanski wrote: Hi, This patch adds most of the capability of the script from

[PATCH] readdir (): Do not set 'errno' if end of dir is encountered

2003-08-14 Thread Pavel Tsekov
Hello, Attached is a patch + a testcase. The testcase can be executed with any of the following directories: /cygdrive /proc /proc/PID /proc/registry/HKEY_WHATEVER 2003-08-05 Pavel Tsekov [EMAIL PROTECTED] * fhandler_disk_file.cc (fhandler_cygdrive::readdir): Do not change