gcc 3.3.1 problem

2003-09-29 Thread Gerry Reno
  I'm having a problem with gcc 3.3.1.  Here is a sample program that
demos the problem:

// test.c
#include 
#include 

typedef struct abc {
  HANDLE h1;
  HANDLE h2;
} XYZ;

XYZ * somefunc () {
  XYZ xyz;
  XYZ *ptr = &xyz;

  ptr->h1 = (HANDLE) 99;
  ptr->h2 = (HANDLE) 88;

printf("somefunc: ptr->h1 = %d\n",ptr->h1);
printf("somefunc: ptr->h2 = %d\n",ptr->h2);

  return (ptr);
}

int main(void) {
  XYZ *ptr2;

  ptr2 = somefunc ();
printf("main: ptr2->h1 = %d\n",ptr2->h1);
printf("main: ptr2->h2 = %d\n",ptr2->h2);

}
--

-- results --
somefunc: ptr->h1 = 99
somefunc: ptr->h2 = 88
main: ptr2->h1 = 99
main: ptr2->h2 = 99


  And sometimes it will give me really large values for main: ptr2-h2
like 4043574.

--
Env:
Cygwin 1.5.5
gcc 3.3.1




=
Gerry Reno
mailto: grenoml at@ yahoo dot. com
(if mail bounces please retry later - spam rapidly fills up mailbox)

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.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/



[ANNOUNCEMENT] Updated: libxml2-2.5.11-1

2003-09-29 Thread Gerrit P. Haase
Libxml2 has been updated.

Libxml2 is the XML C parser and toolkit developed for the Gnome
project (but usable outside of the Gnome platform), it is free
software available under the MIT License. XML itself is a metalanguage
to design markup languages, i.e. text language where semantic and
structure are added to the content using extra 'markup' information
enclosed between angle brackets. HTML is the most well-known markup
language. Though the library is written in C a variety of language
bindings make it available in other environments. 


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Save it and run setup, answer the questions and pick up
'libxml2' from the 'Libs' category, if you install it for the first
time, click on the 'skip' field next to 'libxml2' until '2.5.11-1' is
displayed. 


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need
to find a mirror which has this update.

These mirrors already got the package, the others will probably have 
the latest version of this package fairly soon:

In the US, 
ftp://planetmirror.com/pub/cygwin/ and
ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin/ 
are reliable high bandwidth connection.


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]


Gerrit P. Haase
-- 
=^..^=


--
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: gcc 3.3.1 problem

2003-09-29 Thread Jörg Schaible
Hi Gerry,

you return a pointer to an object on the stack, that is no longer valid after leaving 
your function. So any value printed in main is undefined and you can get any result.

Regards,
Jörg

Gerry Reno wrote on Monday, September 29, 2003 9:34 AM:

>   I'm having a problem with gcc 3.3.1.  Here is a sample
> program that demos the problem:
> 
> // test.c
> #include 
> #include 
> 
> typedef struct abc {
>   HANDLE h1;
>   HANDLE h2;
> } XYZ;
> 
> XYZ * somefunc () {
>   XYZ xyz;
>   XYZ *ptr = &xyz;
> 
>   ptr->h1 = (HANDLE) 99;
>   ptr->h2 = (HANDLE) 88;
> 
> printf("somefunc: ptr->h1 = %d\n",ptr->h1);
> printf("somefunc: ptr->h2 = %d\n",ptr->h2);
> 
>   return (ptr);
> }
> 
> int main(void) {
>   XYZ *ptr2;
> 
>   ptr2 = somefunc ();
> printf("main: ptr2->h1 = %d\n",ptr2->h1);
> printf("main: ptr2->h2 = %d\n",ptr2->h2);
> 
> }
> --
> 
> -- results --
> somefunc: ptr->h1 = 99
> somefunc: ptr->h2 = 88
> main: ptr2->h1 = 99
> main: ptr2->h2 = 99
> 
> 
>   And sometimes it will give me really large values for main: ptr2-h2
> like 4043574. 
> 
> --
> Env:
> Cygwin 1.5.5
> gcc 3.3.1
> 
> 
> 
> 
> =
> Gerry Reno
> mailto: grenoml at@ yahoo dot. com
> (if mail bounces please retry later - spam rapidly fills up mailbox)
> 
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.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/



[ANNOUNCEMENT] Updated: libxslt-1.0.33-1

2003-09-29 Thread Gerrit P. Haase
Libxslt has been updated.

Libxslt is the XSLT C library developed for the Gnome project. XSLT
itself is a an XML language to define transformation for XML. Libxslt
is based on libxml2 the XML C library developed for the Gnome project.
It also implements most of the EXSLT set of processor-portable
extensions functions and some of Saxon's evaluate and expressions
extensions. 


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Save it and run setup, answer the questions and pick up
'libxslt' from the 'Libs' category, if you install it for the first
time, click on the 'skip' field next to 'libxslt' until '1.0.33-1' is
displayed. 


DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need
to find a mirror which has this update.

These mirrors already got the package, the others will probably have 
the latest version of this package fairly soon:

In the US, 
ftp://planetmirror.com/pub/cygwin/ and
ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin/ 
are reliable high bandwidth connection.


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing
list is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send
email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]


Gerrit P. Haase
-- 
=^..^=


--
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: Copying stderr to stdout

2003-09-29 Thread Ronald Landheer-Cieslak
On Fri, Sep 26, 2003 at 05:28:16PM +0200, Øyvind Harboe wrote:
> I was having a bit of trouble copying stderr to stdout, e.g.
> 
> $ ls 2>&1 lkajsdflkjasdflkj >ll
> ls: lkajsdflkjasdflkj: No such file or directory
> 
> I would have expected the error message to end up in "ll".
> 
> If I place "2>&1" at the end of the line it works.
> 
> Is this the intended behaviour?
You're not giving any information that might actually lead to an answer: 
something as basic as which shell you are using..

If you're using Bash, the behaviour is normal. If you're using any other 
shell, I don't know.

rlc

-- 
To stay youthful, stay useful.

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



1.5.5-1: ftp: ftp/tcp: unknown service

2003-09-29 Thread Nicolas JEAN
Hi,

 (cygwin on windows XP SP1)

when I tried to run ftp, I've got :
> ftp server
ftp: ftp/tcp: unknown service

I have the same with telnet

I tried to change the access right on the file services
but nothing change

I wrote this little C program:

#include 
main () {

 struct servent *s;
 s = getservent();
 if ( s != 0x00 )
  printf("%d\n", s->s_port);
 else
  printf("NO !\n");
}

which work perfectly, so I guess the access right are OK
if I tried to run getservbyname it failed.

/etc/services is a link to WIN/system32/drivers/etc/services
and cygwin use this last one, not the link

any idea ?!

I don't think I started or stopped any windows service.

best regards,

Nicolas


--
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: smbntsec broken for drives shared as different user

2003-09-29 Thread Corinna Vinschen
On Sat, Sep 27, 2003 at 11:35:12AM -0400, Michael Condict wrote:
> There are many reasons in Windows why you need to map a shared drive onto
> your system by connecting to it with an explicit username and password, different
> from the current logged in user.  The most important reason is that you are logged
> into a desktop as a local (non-domain) user and want to access files shared by
> another system.  No local user on your system has the same SID as any user on
> any other system, even if the user-name is the same.  Both Windows and CYGWIN
> treat the two users as distinct.
> 
> But when a local user y connects to a shared drive as user x, he should have all the 
> rights
> of remote user x to access files and directories on that drive.  Windows gets this
> right, but CYGWIN's smbntsec does not.  It thinks you have the rights of user y.

The problem is that in contrast to Windows itself, Cygwin doesn't know 
as which user you connected to a share.  At the moment I don't know
which call would return that information.  Any hint appreciated.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: does syslog works only for SYSTEM account on w2k?

2003-09-29 Thread Corinna Vinschen
On Sun, Sep 28, 2003 at 03:16:54PM -0500, Scott Bolte wrote:
> It seems like cygwin syslog on w2k, both the logger command the
> syslog(3) routine, works only for the SYSTEM account. Is that true?

No.  Perhaps the users privileges don't allow that?  Members of the
group "Users" (or the native analogon) have the appropriate permissions
by default.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



broken definition of INVALID_FILE_ATTRIBUTES

2003-09-29 Thread Varga Zoltan

  Hi All,

  I believe the definition of INVALID_FILE_ATTRIBUTES in
/usr/include/w32api/winnt.h is broken:

#define INVALID_FILE_ATTRIBUTES (DWORD (-1))

It is missing a () around DWORD. To try this out, use the
following test program:

<

#include 

void main ()
{
printf ("X: %d.\n", INVALID_FILE_ATTRIBUTES);
}

<<

 bye

   
   Zoltan



--
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: ipc-daemon2

2003-09-29 Thread Jason Tishler
Rob,

On Sun, Sep 28, 2003 at 05:58:45PM -0500, Robert L. Campbell wrote:
> here's my problems whith shared memory.
> 
> cygwin 1.5.5-1
> ipc-daemon2 runs from the command line ok.
> ipcs -m reports no shared memory in kernel.
> ipctest h   can't allocate shared memory.

Works for me:

$ uname -a
CYGWIN_NT-5.0 TISHLERJASON 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 ...

$ cygrunsrv -Q ipc-daemon2
Service ipc-daemon2 exists
Type: Own Process
Current State   : Running
Controls Accepted   : Accept Stop

$ ipcs -m

-- Shared Memory Segments 
 shmid key   bytes nattchstatus  
_shm 0

$ ipctest h
Test v0.03
Shared memory segment 1 created
shmat return code= 0
shmat ok adr= 0x68
ok

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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-1.5.4-1 breaks fetchmail on Win9x

2003-09-29 Thread Jason Tishler
Mark,

On Sat, Sep 27, 2003 at 01:58:39PM +1000, Mark Ord wrote:
> I then updated to cygwin-1.5.4-1, which seems to break fetchmail.
> Fetchmail complains about not being able to create the lock file, but
> I believe the issue is actually with *removing* the stale lock file
> (it doesn't happen):

I do not have access to 9x so you will have to debug this further
yourself.  Can you run fetchmail under strace or gdb?  If so, can you
determine why the attempt to delete the lock file fails?

> [snip]
> 
> As far as I can tell, this is a Win9x (Win98SE) issue. Testing
> fetchmail on XP with cygwin-1.5.5-1 doesn't seem to suffer from this
> problem

Could this be a FAT/FAT32 vs. NTFS issue instead?

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

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



Re: does syslog works only for SYSTEM account on w2k?

2003-09-29 Thread Scott Bolte
> 
> > It seems like cygwin syslog on w2k, both the logger command the
> > syslog(3) routine, works only for the SYSTEM account. Is that true?
> 
> No.  Perhaps the users privileges don't allow that?  Members of the
> group "Users" (or the native analogon) have the appropriate permissions
> by default.

I expect my test user has sufficient privileges.  It is
in groups None, Administrators, Power Users, and User.

I guess I'll try to learn more about the internals of w2k,
more then I ever wanted to know, starting with ReportEventA().

Unfortunately my configure of cygwin-1.5.5-1 died looking
for an errant install-sh. In case my w2k environment is
insufficient to build cygwin from scratch, could you add a
check of return code from ReportEventA()? That might shed
light on the problem.

Thank you,

   Scott




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



Best way to backup a cygwin installation ?

2003-09-29 Thread Olaf Foellinger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

what is the best way to backup a cygwin installation ? I have a working
installation here on w2k with a size of appr. 700 MB. I use ntsec and I
wonder which is the best way:

- - copy the file sin windows ?
- - make a tar.gz archive under cygwin ?

I want a possibility to turn back to this version in case the upgrade to
1.5.x fails.  
 
Gruss Olaf Föllinger

- -- 
Olaf Föllinger
Berater 
S.E.S.A. Software und Systeme AG

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (Cygwin)

iD8DBQE/eCR7QhZYH/dN/jsRAh/6AJ9x5UC8aPAgoK29kgSCXBtWQV55BgCeIV0Y
7GIvYX3OtbJ67RZaHqG8TNQ=
=/EYq
-END PGP SIGNATURE-

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



Re: does syslog works only for SYSTEM account on w2k?

2003-09-29 Thread Corinna Vinschen
On Mon, Sep 29, 2003 at 07:03:42AM -0500, Scott Bolte wrote:
>could you add a
>   check of return code from ReportEventA()? That might shed
>   light on the problem.

I've added a debug message.  Should be in the next developers snapshot.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: broken definition of INVALID_FILE_ATTRIBUTES

2003-09-29 Thread Corinna Vinschen
On Mon, Sep 29, 2003 at 12:53:43PM +0200, Varga Zoltan wrote:
>   I believe the definition of INVALID_FILE_ATTRIBUTES in
> /usr/include/w32api/winnt.h is broken:
> 
> #define INVALID_FILE_ATTRIBUTES   (DWORD (-1))

Yup, seems wrong.  Danny, could you change that??

Thanks for the note,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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



Re: gcc 3.3.1 problem

2003-09-29 Thread Igor Pechtchanski
On Mon, 29 Sep 2003, Gerry Reno wrote:

>   I'm having a problem with gcc 3.3.1.  Here is a sample program that
> demos the problem:
>
> // test.c
> #include 
> #include 
>
> typedef struct abc {
>   HANDLE h1;
>   HANDLE h2;
> } XYZ;
>
> XYZ * somefunc () {
>   XYZ xyz;
>   XYZ *ptr = &xyz;
>
>   ptr->h1 = (HANDLE) 99;
>   ptr->h2 = (HANDLE) 88;
>
> printf("somefunc: ptr->h1 = %d\n",ptr->h1);
> printf("somefunc: ptr->h2 = %d\n",ptr->h2);
>
>   return (ptr);
> }
>
> int main(void) {
>   XYZ *ptr2;
>
>   ptr2 = somefunc ();
> printf("main: ptr2->h1 = %d\n",ptr2->h1);
> printf("main: ptr2->h2 = %d\n",ptr2->h2);
>
> }
> --
>
> -- results --
> somefunc: ptr->h1 = 99
> somefunc: ptr->h2 = 88
> main: ptr2->h1 = 99
> main: ptr2->h2 = 99
>
>
>   And sometimes it will give me really large values for main: ptr2-h2
> like 4043574.
>
> --
> Env:
> Cygwin 1.5.5
> gcc 3.3.1
>
> =
> Gerry Reno

Tsk, tsk, tsk, Gerry, you should really know better than to return a
pointer to an automatic variable (a struct, in this case).  That's one of
the things K&R explicitly warns against.  You're lucky it worked at all in
the previous versions of gcc.  If you want to return a pointer to
something from a function, either make it global, or static, or allocate
it dynamically.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: gcc 3.3.1 problem

2003-09-29 Thread Gerry Reno
  It seems that you aren't supposed to return internal automatic
references! :-)  The compiler should have warned but didn't.

--- Gerry Reno <[EMAIL PROTECTED]> wrote:
>   I'm having a problem with gcc 3.3.1.  Here is a sample program that
> demos the problem:
> 

 

> XYZ * somefunc () {
>   XYZ xyz;
>   XYZ *ptr = &xyz;

  xyz and *ptr need to be either static or made global.





=
Gerry Reno
mailto: grenoml at@ yahoo dot. com
(if mail bounces please retry later - spam rapidly fills up mailbox)

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.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/



[ANNOUNCEMENT] Updated: exim-4.24-1

2003-09-29 Thread Pierre A. Humblet
I have updated Exim, the Mail Transfer Agent, to exim-4.24-1.
It is the first stable release since the current 4.22.

Changes:
- The list of Exim changes appears in
  
  and in /usr/share/doc/exim-4.24/NewStuff

- Exim can now use PAM to authenticate users presenting their Windows names 
  and passwords.

Note:
 Old gdbm databases are incompatible with the gdbm software for Cygwin 1.5.
 Exim handles the transition gracefully (making an entry in its log). 
 However if you revert to an Exim release earlier than 4.22, it will be
 necessary to delete all files in /var/spool/exim/db. This causes no 
 permanent loss of data.

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

If you have questions or comments, please send them to the Cygwin
mailing list: [EMAIL PROTECTED] .

Pierre


--
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: Best way to backup a cygwin installation ?

2003-09-29 Thread Igor Pechtchanski
On Mon, 29 Sep 2003, Olaf Foellinger wrote:

> Hi,
>
> what is the best way to backup a cygwin installation ? I have a working
> installation here on w2k with a size of appr. 700 MB. I use ntsec and I
> wonder which is the best way:
>
> - - copy the file sin windows ?
> - - make a tar.gz archive under cygwin ?
>
> I want a possibility to turn back to this version in case the upgrade to
> 1.5.x fails.
>
> Gruss Olaf Foellinger

Olaf,

You probably want to make a tar archive under Cygwin to keep the
permissions and the ownership.  To make sure you can actually extract that
archive, you should make extra copies of tar.exe, gzip.exe, cygwin1.dll,
cygiconv-2.dll, and cygintl-2.dll into your backup directory.  When you
extract, make sure to explicitly use the tar from the backup directory,
and that no other Cygwin processes are running at the time.

It would be a good idea to also back up your mount table in a file called
"mounts.bat" in the same directory (by using the output of "mount -m"),
and then restore them after untarring the backup.  You will need to make
an extra copy of mount.exe (no dependences).  So, your backup directory
will probably look like:

cygiconv-2.dll
cygintl-2.dll
cygwin1.dll
cygwin-backup.tgz
gzip.exe
mount.exe
tar.exe

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Best way to backup a cygwin installation ?

2003-09-29 Thread Igor Pechtchanski
On Mon, 29 Sep 2003, Igor Pechtchanski wrote:

> On Mon, 29 Sep 2003, Olaf Foellinger wrote:
>
> > Hi,
> >
> > what is the best way to backup a cygwin installation ? I have a working
> > installation here on w2k with a size of appr. 700 MB. I use ntsec and I
> > wonder which is the best way:
> >
> > - - copy the file sin windows ?
> > - - make a tar.gz archive under cygwin ?
> >
> > I want a possibility to turn back to this version in case the upgrade to
> > 1.5.x fails.
> >
> > Gruss Olaf Foellinger
>
> Olaf,
>
> You probably want to make a tar archive under Cygwin to keep the
> permissions and the ownership.  To make sure you can actually extract that
> archive, you should make extra copies of tar.exe, gzip.exe, cygwin1.dll,
> cygiconv-2.dll, and cygintl-2.dll into your backup directory.  When you
> extract, make sure to explicitly use the tar from the backup directory,
> and that no other Cygwin processes are running at the time.
>
> It would be a good idea to also back up your mount table in a file called
> "mounts.bat" in the same directory (by using the output of "mount -m"),
> and then restore them after untarring the backup.  You will need to make
> an extra copy of mount.exe (no dependences).  So, your backup directory
> will probably look like:
>
> cygiconv-2.dll
> cygintl-2.dll
> cygwin1.dll
> cygwin-backup.tgz
> gzip.exe
> mount.exe

mounts.bat

> tar.exe
>
> Hope this helps,
> Igor

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



File name completion on symbolic links

2003-09-29 Thread Lynn Wilson
This is a very minor issue and it may be just a Bash problem, but...

When I use Bash to do file name completion (using Tab) on a DIRECTORY 
that is a symlink I do not get the trailing slash '/'.

If it's a real directory, the TAB results in the completion of the 
directory name with an appended slash.  If it's a symlink, I get the 
directory name but NO slash.

This is the part of my mount table that may be of interest:

c:\program files on /PF type system (binmode)
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
C:\cygwin on / type system (binmode)
c: on /c type system (binmode)
d: on /d type system (binmode,noumount)
cd /c
c> ls -ald Sources Public
drwxr-xr-x+   4 lrwilso  mkgroup  4096 Aug 13 11:28 public/
lrwxrwxrwx1 lrwilso  mkgroup   100 Aug 13 09:52 Sources -> 
/d/Sources

ls pub  yields  "ls public/"
ls  Sou yields "ls Sources"
any insight?

Lynn





--
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: File name completion on symbolic links

2003-09-29 Thread Igor Pechtchanski
On Mon, 29 Sep 2003, Lynn Wilson wrote:

> This is a very minor issue and it may be just a Bash problem, but...
>
> When I use Bash to do file name completion (using Tab) on a DIRECTORY
> that is a symlink I do not get the trailing slash '/'.
>
> If it's a real directory, the TAB results in the completion of the
> directory name with an appended slash.  If it's a symlink, I get the
> directory name but NO slash.
>
> This is the part of my mount table that may be of interest:
>
> c:\program files on /PF type system (binmode)
> C:\cygwin\bin on /usr/bin type system (binmode)
> C:\cygwin\lib on /usr/lib type system (binmode)
> C:\cygwin on / type system (binmode)
> c: on /c type system (binmode)
> d: on /d type system (binmode,noumount)
>
> cd /c
> c> ls -ald Sources Public
> drwxr-xr-x+   4 lrwilso  mkgroup  4096 Aug 13 11:28 public/
> lrwxrwxrwx1 lrwilso  mkgroup   100 Aug 13 09:52 Sources ->
> /d/Sources
>
>
> ls pub  yields  "ls public/"
> ls  Sou yields "ls Sources"
>
> any insight?
>
> Lynn

Lynn,

Put the following in your ~/.inputrc:

set mark-symlinked-directories on

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

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



*** unable to allocate heap, heap_chunk_size 0, Win32 error 0

2003-09-29 Thread Ronald van Gogh
I'm running every 10 minutes a bash script with cygwin software to collect 
statistics information from a dominoserver. Now this works in 99% of the 
time, but sometimes the error "d:\cygwin\bin\bash.exe: *** unable to 
allocate heap, heap_chunk_size 0, Win32 error 0" appears.
We schedule the script with a seperate tool called Windows Scheduler.

Can somebody in simple terms explain to me what this means and how we can 
avoid it ?

Kind regards,  Ronald van Gogh

_
Chatten met je online vrienden via MSN Messenger. http://messenger.msn.nl/
--
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/


objdump -CS objfile.o : Segmentation fault (core dumped)

2003-09-29 Thread Alex Vinokur
Hi,

I have got "Segmentation fault (core dumped)" working with the objdump utility.


Windows 2000 Professional
CYGWIN_NT-5.0 1.5.4(0.94/3/2)
GNU gcc version 3.3.1 (cygming special)
GNU objdump 2.14.90 20030901


Source C++ file : see attachment (t.cpp)

$ g++ -c t.cpp

$ objdump -CS t.o > tmp
Segmentation fault (core dumped)

$ tail tmp
 20f: 89 41 04  mov%eax,0x4(%ecx)
 212: 8b 45 08  mov0x8(%ebp),%eax
 215: 83 c4 54  add$0x54,%esp
 218: 5bpop%ebx
 219: 5dpop%ebp
 21a: c3ret
 21b: 90nop
Disassembly of section 
.text$_ZSt13copy_backwardIN9__gnu_cxx17__normal_iteratorIPSt6vectorImSaImEES2_IS4_SaIS4_S8_ET0_T_SA_S9_:

 <__gnu_cxx::__normal_iterator >*, std::vector >, std::allocator > > > >
std::copy_backward<__gnu_cxx::__normal_iterator >*,
std::vector >, 
std::allocator > > > >, 
__gnu_cxx::__normal_iterator 
>*,
std::vector >, 
std::allocator > > > > 
>(__gnu_cxx::__normal_iterator >*,
std::vector >, 
std::allocator > > > >, 
__gnu_cxx::__normal_iterator 
>*,
std::vector >, 
std::allocator > > > >, __gnu_cxx::__normal_iterat



--
   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
   =



begin 666 t.cpp
M(VEN8VQU9&4@/'-T9&QI8BYH/@T*(VEN8VQU9&4@/'1I;64N:#X-"B-I;F-L
M=61E(#QAR!S:6YK("L]('9A;'5E.R!]#0IV;VED(&9O;U]?9'5M;7E?96YD(" @
M(" @(" @(" @(" @(" H*2 @(" @(" @(" @(" @(" @>R!S:6YK("L]('9A
M;'5E.R!]#0H-"@[EMAIL PROTECTED]('=I=&@@8F]D>2 M+2TM+2T-"G9O:60@
M9F]O7U]B;V1Y7U]N;U]A2 M+2TM+2T-"G9O:[EMAIL PROTECTED];U]B;V1Y7U]N;U]A5]?8VAAWT-"G9O
M:[EMAIL PROTECTED];U]B;V1Y7U]C:&%R7W)E9E]U;G5S960@("AC;VYS="!C:&%R
M)BD@(" @("![?0T*#0H-"G9O:[EMAIL PROTECTED];U]B;V1Y7U]S:&]R=%]A5]?:6YT7W)E9E]U
M;G5S960@(" H8V]NWT-"@T*#0H-"@T*(V1E9FEN
M92!-14%355)%7TE4*'@L('DI(%P-"B @2D@/[EMAIL PROTECTED];65S+F5N9"@I*2!<#0H@('[EMAIL PROTECTED] T*(" @(&9O;U]N
M86UE2D[(%P-"B @87-S97)T("AI=&5R7VYA;65S("$](&9O;U]N
M86UE5]S=&%R="D[#0H-"B @[EMAIL PROTECTED]
M+2TM+2TM+2TM+2TM+2TM+2TM+0T*("!-14%355)%7U=)5$A?3D]?05)'("AF
M;V]?7V)O9'E?7VYO7V%R9W,I.PT*#0H@($U%05-54D5?5TE42%]!4D<@*&9O
M;U]?8F]D>5]?8VAA5]?8VAA5]?5]?;F]?87)G5]E;F0I.PT*?0T*#0H-"B\O("TM+2TM
M+2TM+2TM+0T*=F]I9"!S:&]W("AI;G0@;F]?;V9?=&5S=',I#0I[#0HC9&5F
M:6YE($9!0U1/4B Q,# -"F-L;[EMAIL PROTECTED]&EC:W,[#0IC;&]C:U]T('-U;3L-
M"@T*("!I=&5R7VYA;65S([EMAIL PROTECTED]" H9F]O7VYA;65S+F)E9VEN*"DL(&9O
M;U]N86UE5]?:6YT7V%R9U]UF%T;W)?;F\@/2!D:7-T86YC92 H9F]O
M7VYA;65S+F)E9VEN*"DL(&ET97)?;F%M97,I.PT*#0H@(" @87-S97)T("AN
M;U]O9E]T97-TF%T;W)?=F%L=64@
M/2!S=6TO=7-E9%]T:6UE6VYOF4H*2D[#0H-"B @9F]R("AI;G0@:2 ](# [(&D@
M/"!F;V]?;F%M97,N<[EMAIL PROTECTED]@('L-"B @("!S=6T@/2 P.PT*
M(" @(&%SF4H
M*2D[#0H@(" @9F]R("AI;G0@:R ](# [(&L@/"!UF4H*3L-"@T*(" @(&-O=70@/#P@F%T;W)?=F%L=64I#0H@(" @(" @(" \
M/" B(&YOhttp://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: *** unable to allocate heap, heap_chunk_size 0, Win32 error 0

2003-09-29 Thread Christopher Faylor
On Mon, Sep 29, 2003 at 05:40:38PM +0200, Ronald van Gogh wrote:
>I'm running every 10 minutes a bash script with cygwin software to
>collect statistics information from a dominoserver.  Now this works in
>99% of the time, but sometimes the error "d:\cygwin\bin\bash.exe: ***
>unable to allocate heap, heap_chunk_size 0, Win32 error 0" appears.  We
>schedule the script with a seperate tool called Windows Scheduler.
>
>Can somebody in simple terms explain to me what this means and how we
>can avoid it ?

Please peruse http://cygwin.com/problems.html and provide the information
requested on that page.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.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/



/usr/bin/su.exe in sh-utils always fails

2003-09-29 Thread Matt Swift
The Cygwin FAQ says that there is no `su' command in recent versions
of Cygwin, The sh-utils package, however, currently contains an `su'
command, but it doesn't work.  The shell transcript below illustrates
the problem.  You have to trust me that I offer the same password to
`su' as I do to `ssh'.


[vav] swift> hostname; uname -a
vav
CYGWIN_NT-5.1 vav 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin
[vav] swift> whoami
swift
[vav] swift> su kate
Password:
su: incorrect password
[vav] swift> whoami
swift
[vav] swift> ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password: 
[vav] kate> whoami
kate
[vav] kate> exit
logout
Connection to vav closed.
[vav] swift> whoami
swift
[vav] swift> 


[vav] swift> cygcheck /usr/bin/su.exe
C:/cygwin/bin/su.exe
  C:\WINNT\System32\KERNEL32.dll
C:\WINNT\System32\ntdll.dll
  C:/cygwin/bin\cygwin1.dll
  C:/cygwin/bin\cygintl-2.dll
C:/cygwin/bin\cygiconv-2.dll

[vav] swift> cygcheck -f /usr/bin/su.exe
sh-utils-2.0.15-4

[vav] swift> cygcheck -c sh-utils
Cygwin Package Information
Package  VersionStatus
sh-utils 2.0.15-4   OK

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



ln and mkshortcut inconsistent in handling of .exe extension

2003-09-29 Thread Matt Swift
The following shell transcript demonstrates that `ln' does not handle
the .exe extension gracefully, like mkshortcut does.

I believe graceful behavior would require the following changes:

  1) `ln' would not give the two errors below when trying to create
 "hardlink-to-base" and "hardlink-to-base.exe": the target
 ("program") should silently have the .exe extension added.  I do
 not know whether there should be a warning in this case, or
 whether the .exe extension should be added to the link-name,
 perhaps with a warning.

  2) The files "symlink-to-base" "symlink-to-base.exe" should have the
 .exe extension silently added to the Windows shortcut target: at
 present, the files are not valid Windows shortcuts (they appear
 to Windows Explorer as a shortcut, but have an empty "Target"
 which can not be altered in the usual way; the Comment field is
 correct).  This behavior would match `mkshortcut''s, which adds
 the .exe extension to the Target when it is not supplied on the
 command-line (what appeared on the command-line appears verbatim
 in the Comment field, however).



[vav] test> ls -l
total 909
-rwxr-xr-x1 swiftAdminist   930304 Sep 29 13:05 program.exe
[vav] test> ln -s program symlink-to-base
[vav] test> ln -s program.exe symlink-to-full
[vav] test> ln -s program symlink-to-base.exe
[vav] test> ln -s program.exe symlink-to-full.exe

[vav] test> ln program hardlink-to-base
ln: creating hard link `hardlink-to-base' to `program': No such file or directory
[vav] test> ln program.exe hardlink-to-full
[vav] test> ln program hardlink-to-base.exe
ln: creating hard link `hardlink-to-base.exe' to `program': No such file or 
directory
[vav] test> ln program.exe hardlink-to-full.exe

[vav] test> mkshortcut program
[vav] test> mkshortcut program.exe

[vav] test> ls -l
total 2729
-rwxr-xr-x3 swiftAdminist   930304 Sep 29 13:05 hardlink-to-full
-rwxr-xr-x3 swiftAdminist   930304 Sep 29 13:05 hardlink-to-full.exe
-rwxr-xr-x3 swiftAdminist   930304 Sep 29 13:05 program.exe
-rwxrwxr-x1 swiftAdminist  661 Sep 29 13:38 program.exe.lnk
-rwxrwxr-x1 swiftAdminist  433 Sep 29 13:37 program.lnk
lrwxrwxrwx1 swiftAdminist   94 Sep 29 13:36 symlink-to-base -> program
lrwxrwxrwx1 swiftAdminist   94 Sep 29 13:36 symlink-to-base.exe -> 
program
lrwxrwxrwx1 swiftAdminist  102 Sep 29 13:36 symlink-to-full -> 
program.exe
lrwxrwxrwx1 swiftAdminist  102 Sep 29 13:36 symlink-to-full.exe -> 
program.exe
[vav] test> 

[vav] test> hostname; uname -a
vav
CYGWIN_NT-5.1 vav 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin
[vav] test> type ln
ln is hashed (/usr/bin/ln)
[vav] test> cygcheck -f /usr/bin/ln
fileutils-4.1-2
[vav] test> cygcheck -c fileutils
Cygwin Package Information
Package  VersionStatus
fileutils4.1-2  OK

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



ssh shell's mount table differs from normal shell's

2003-09-29 Thread Matt Swift

I do not understand why the Cygwin mount table should be different in
the bash shell that I launch with cygwin.bat or rxvt.exe than the
mount table I get when I ssh to the host with the same user.  The
shell transcript below illustrates the difference.  The Windows drives
H: and S:, which are missing from the mount table in the ssh shell,
happen to be remote resources, while the other lettered mounts are
physical drives.  But if that were the pattern, the /usr/local/share
mount would also be absent in the ssh shell.

[vav] swift> hostname; uname -a
vav
CYGWIN_NT-5.1 vav 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin

[vav] swift> id
uid=500(swift) gid=544(Administrators) 
groups=513(None),544(Administrators),545(Users),547(Power Users),551(Backup 
Operators),555(Remote Desktop Users),556(Network Configuration 
Operators),1011(Debugger Users)

[vav] swift> ssh vav id
uid=500(swift) gid=544(Administrators) 
groups=513(None),544(Administrators),545(Users),547(Power Users),551(Backup 
Operators),555(Remote Desktop Users),556(Network Configuration 
Operators),1011(Debugger Users)

[vav] swift> mount
C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode)
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
\\beth\share on /usr/local/share type system (binmode)
C:\cygwin on / type system (binmode)
c: on /cygdrive/c type user (binmode,noumount)
h: on /cygdrive/h type user (binmode,noumount)
s: on /cygdrive/s type user (binmode,noumount)
u: on /cygdrive/u type user (binmode,noumount)
v: on /cygdrive/v type user (binmode,noumount)
w: on /cygdrive/w type user (binmode,noumount)
y: on /cygdrive/y type user (binmode,noumount)

[vav] swift> ssh vav mount
C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode)
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
\\beth\share on /usr/local/share type system (binmode)
C:\cygwin on / type system (binmode)
c: on /cygdrive/c type user (binmode,noumount)
u: on /cygdrive/u type user (binmode,noumount)
v: on /cygdrive/v type user (binmode,noumount)
w: on /cygdrive/w type user (binmode,noumount)
y: on /cygdrive/y type user (binmode,noumount)

[vav] swift> cat ~/.ssh/config
# man ssh_config

Host beth
HostKeyAlias beth
Host beth.swift.xxx
HostKeyAlias beth

Host vav
HostKeyAlias vav
Host vav.swift.xxx
HostKeyAlias vav

Host mercury
HostKeyAlias mercury
Host mercury.swift.xxx
HostKeyAlias mercury

# No strict checking for computers that are likely to move around.

Host luna
HostKeyAlias luna
StrictHostKeyChecking no
CheckHostIP no
Host luna.swift.xxx
HostKeyAlias luna
StrictHostKeyChecking no
CheckHostIP no

Host zayin
HostKeyAlias zayin
StrictHostKeyChecking no
CheckHostIP no
Host zayin.swift.xxx
HostKeyAlias zayin
StrictHostKeyChecking no
CheckHostIP no

Host subversions.gnu.org
CheckHostIP no
Protocol 1


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



/usr/bin/su.exe in sh-utils always fails

2003-09-29 Thread David Starks-Browning
On Monday 29 Sep 03, Matt Swift writes:
> The Cygwin FAQ says that there is no `su' command in recent versions
> of Cygwin, The sh-utils package, however, currently contains an `su'
> command, but it doesn't work.  The shell transcript below illustrates
> the problem.  You have to trust me that I offer the same password to
> `su' as I do to `ssh'.

So the FAQ should point out that the su from sh-utils doesn't work,
instead of saying that there is no su command.  I'll update it.

David


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



Convert Cygwin shortcuts to Unix symlinks ?

2003-09-29 Thread Frédéric L. W. Meunier
Anybody know how (better if recursively) ? I extracted a
tarball under Cygwin and later copied it to a Linux partition.
Obviously all Cygwin shortcuts created at extract time are
copied, breaking it.

-- 
How to contact me - http://www.pervalidus.net/contact.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: /usr/bin/su.exe in sh-utils always fails

2003-09-29 Thread Larry Hall
Matt,

See the email archives on this one.  I suggest you start here:



The FAQ may be a little out-of-date on the specifics but the intent is
correct.  Don't expect 'su' to work even if it exists.

Larry


At 02:21 PM 9/29/2003, Matt Swift you wrote:
>The Cygwin FAQ says that there is no `su' command in recent versions
>of Cygwin, The sh-utils package, however, currently contains an `su'
>command, but it doesn't work.  The shell transcript below illustrates
>the problem.  You have to trust me that I offer the same password to
>`su' as I do to `ssh'.
>
>
>[vav] swift> hostname; uname -a
>vav
>CYGWIN_NT-5.1 vav 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin
>[vav] swift> whoami
>swift
>[vav] swift> su kate
>Password:
>su: incorrect password
>[vav] swift> whoami
>swift
>[vav] swift> ssh [EMAIL PROTECTED]
>[EMAIL PROTECTED]'s password: 
>[vav] kate> whoami
>kate
>[vav] kate> exit
>logout
>Connection to vav closed.
>[vav] swift> whoami
>swift
>[vav] swift> 
>
>
>[vav] swift> cygcheck /usr/bin/su.exe
>C:/cygwin/bin/su.exe
>  C:\WINNT\System32\KERNEL32.dll
>C:\WINNT\System32\ntdll.dll
>  C:/cygwin/bin\cygwin1.dll
>  C:/cygwin/bin\cygintl-2.dll
>C:/cygwin/bin\cygiconv-2.dll
>
>[vav] swift> cygcheck -f /usr/bin/su.exe
>sh-utils-2.0.15-4
>
>[vav] swift> cygcheck -c sh-utils
>Cygwin Package Information
>Package  VersionStatus
>sh-utils 2.0.15-4   OK
>
>--
>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/



Texinfo 4.6

2003-09-29 Thread Bertalan Fodor
I tried to make texinfo 4.6 (because of a bug in 4.2), but texi2dvi didn't
work.

Will there be a cygwin release of texinfo 4.6 ?

Greetings,

Bert


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



Re: ssh shell's mount table differs from normal shell's

2003-09-29 Thread Larry Hall
Matt,

I'll let you look this one up if you're interested in the previous 
discussions and details on this subject.  

This is the same old "problem" with ssh that everyone has if they don't 
authenticate with Windows (and enter their password).  If you don't use 
password authentication with ssh, Windows doesn't know you as the user you 
say you are so it won't show you shares for that user.

Don't forget about the email archives when you have a question.  I little 
time looking there can answer allot of questions.

Larry


At 02:21 PM 9/29/2003, Matt Swift you wrote:

>I do not understand why the Cygwin mount table should be different in
>the bash shell that I launch with cygwin.bat or rxvt.exe than the
>mount table I get when I ssh to the host with the same user.  The
>shell transcript below illustrates the difference.  The Windows drives
>H: and S:, which are missing from the mount table in the ssh shell,
>happen to be remote resources, while the other lettered mounts are
>physical drives.  But if that were the pattern, the /usr/local/share
>mount would also be absent in the ssh shell.
>
>[vav] swift> hostname; uname -a
>vav
>CYGWIN_NT-5.1 vav 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin
>
>[vav] swift> id
>uid=500(swift) gid=544(Administrators) 
> groups=513(None),544(Administrators),545(Users),547(Power Users),551(Backup 
> Operators),555(Remote Desktop Users),556(Network Configuration 
> Operators),1011(Debugger Users)
>
>[vav] swift> ssh vav id
>uid=500(swift) gid=544(Administrators) 
> groups=513(None),544(Administrators),545(Users),547(Power Users),551(Backup 
> Operators),555(Remote Desktop Users),556(Network Configuration 
> Operators),1011(Debugger Users)
>
>[vav] swift> mount
>C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system 
> (binmode)
>C:\cygwin\bin on /usr/bin type system (binmode)
>C:\cygwin\lib on /usr/lib type system (binmode)
>\\beth\share on /usr/local/share type system (binmode)
>C:\cygwin on / type system (binmode)
>c: on /cygdrive/c type user (binmode,noumount)
>h: on /cygdrive/h type user (binmode,noumount)
>s: on /cygdrive/s type user (binmode,noumount)
>u: on /cygdrive/u type user (binmode,noumount)
>v: on /cygdrive/v type user (binmode,noumount)
>w: on /cygdrive/w type user (binmode,noumount)
>y: on /cygdrive/y type user (binmode,noumount)
>
>[vav] swift> ssh vav mount
>C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system 
> (binmode)
>C:\cygwin\bin on /usr/bin type system (binmode)
>C:\cygwin\lib on /usr/lib type system (binmode)
>\\beth\share on /usr/local/share type system (binmode)
>C:\cygwin on / type system (binmode)
>c: on /cygdrive/c type user (binmode,noumount)
>u: on /cygdrive/u type user (binmode,noumount)
>v: on /cygdrive/v type user (binmode,noumount)
>w: on /cygdrive/w type user (binmode,noumount)
>y: on /cygdrive/y type user (binmode,noumount)
>
>[vav] swift> cat ~/.ssh/config
># man ssh_config
>
>Host beth
>HostKeyAlias beth
>Host beth.swift.xxx
>HostKeyAlias beth
>
>Host vav
>HostKeyAlias vav
>Host vav.swift.xxx
>HostKeyAlias vav
>
>Host mercury
>HostKeyAlias mercury
>Host mercury.swift.xxx
>HostKeyAlias mercury
>
># No strict checking for computers that are likely to move around.
>
>Host luna
>HostKeyAlias luna
>StrictHostKeyChecking no
>CheckHostIP no
>Host luna.swift.xxx
>HostKeyAlias luna
>StrictHostKeyChecking no
>CheckHostIP no
>
>Host zayin
>HostKeyAlias zayin
>StrictHostKeyChecking no
>CheckHostIP no
>Host zayin.swift.xxx
>HostKeyAlias zayin
>StrictHostKeyChecking no
>CheckHostIP no
>
>Host subversions.gnu.org
>CheckHostIP no
>Protocol 1
>
>
>--
>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: ln and mkshortcut inconsistent in handling of .exe extension

2003-09-29 Thread Larry Hall
At 02:23 PM 9/29/2003, Matt Swift you wrote:
>  2) The files "symlink-to-base" "symlink-to-base.exe" should have the
> .exe extension silently added to the Windows shortcut target: at
> present, the files are not valid Windows shortcuts (they appear
> to Windows Explorer as a shortcut, but have an empty "Target"
> which can not be altered in the usual way; the Comment field is
> correct).  This behavior would match `mkshortcut''s, which adds
> the .exe extension to the Target when it is not supplied on the
> command-line (what appeared on the command-line appears verbatim
> in the Comment field, however).


'ln' and 'mkshortcut' have different behavior for a reason.  See 
.
The difference is why 'mkshortcut' exists.  Otherwise, we'd just have
'ln' (which is all we had for quite some time until the need for 
different behavior was realized).



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


--
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: ln and mkshortcut inconsistent in handling of .exe extension

2003-09-29 Thread Christopher Faylor
On Mon, Sep 29, 2003 at 02:23:23PM -0400, Matt Swift wrote:
>The following shell transcript demonstrates that `ln' does not handle
>the .exe extension gracefully, like mkshortcut does.

Correct.  It is not intended to.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.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: compiled files under GPL?

2003-09-29 Thread Brian Ford
On Fri, 26 Sep 2003, Matthew O. Persico wrote:

> On Fri, 26 Sep 2003 20:27:36 -0400 (EDT), Igor Pechtchanski wrote:
> > On Fri, 26 Sep 2003, Brian Ford wrote:
> >
> >>> Is it true that any application I compile under cygwin's
> >>> gcc/g++ is automatically under the GPL? Is so I've been doing some
> >>> violating...
> >>> sorry.
> >>
> >> This will link your binary to the cygwin DLL by default.  Unless
> >> you have purchased a buy out contract from Red Hat, yes.
> >
> > There are some exceptions, IIRC.  For more information, see
> >  or consult a lawyer.
> > Igor
>
> I'm treading on very thin ice here with respect to being OT but I beg
> your indulgence. From the link above:
>
> "To cover the GNU GPL requirements, the basic rule is if you give out
> any binaries, you must also make the source available. "
>
> Which means if I use GNU GPL software to make a commercial product
> (selling and distribution implied), the product must be GPL, source
> exposed, etc.
>
> BUT, if I use GPL in a bank to create software used by bank customers
> or in back overnight process, since I'm NOT selling the software, I
> don't have to expose squat. Yes? If so, then the GPL-is-viral argument
> goes by the wayside for all non-software development companies.
>
> Is that a reasonable interpretation?
>
IANAL
YANALATEYHSMBSI

In-house use is normally not in violation of the GPL.

In your example, as long as your program is never sold or distributed in
binary form (ie. you did not sell or give it to the bank in binary
form because the bank owned your labor that created it), and the bank
never sells or distributes the binaries outside itself, I think you are
ok.

Since these types of distinctions look legally cloudy to me, I would
hesitate strongly to agree with your "goes by the wayside for all
non-software development companies" statement.

That said, you should consult a lawyer.  No one on this list is
a qualified GPL authority.  Only the courts can make a determination.

CGF, the closest person here to an authority, hates GPL conversations.
Don't expect him to speak up unless you are clearly in violation, or this
conversation has already (as it probably has) gone on too long.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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: compiled files under GPL?

2003-09-29 Thread Christopher Faylor
On Mon, Sep 29, 2003 at 04:03:06PM -0500, Brian Ford wrote:
>On Fri, 26 Sep 2003, Matthew O. Persico wrote:
>
>> On Fri, 26 Sep 2003 20:27:36 -0400 (EDT), Igor Pechtchanski wrote:
>> >?On Fri, 26 Sep 2003, Brian Ford wrote:
>> >
>> >>>?Is it true that any application I compile under cygwin's
>> >>>?gcc/g++ is automatically under the GPL? Is so I've been doing some
>> >>>?violating...
>> >>>?sorry.
>> >>
>> >>?This will link your binary to the cygwin DLL by default. ?Unless
>> >>?you have purchased a buy out contract from Red Hat, yes.
>> >
>> >?There are some exceptions, IIRC. ?For more information, see
>> >??or consult a lawyer.
>> >?Igor
>>
>> I'm treading on very thin ice here with respect to being OT but I beg
>> your indulgence. From the link above:
>>
>> "To cover the GNU GPL requirements, the basic rule is if you give out
>> any binaries, you must also make the source available. "
>>
>> Which means if I use GNU GPL software to make a commercial product
>> (selling and distribution implied), the product must be GPL, source
>> exposed, etc.
>>
>> BUT, if I use GPL in a bank to create software used by bank customers
>> or in back overnight process, since I'm NOT selling the software, I
>> don't have to expose squat. Yes? If so, then the GPL-is-viral argument
>> goes by the wayside for all non-software development companies.
>>
>> Is that a reasonable interpretation?
>>
>IANAL
>YANALATEYHSMBSI
>
>In-house use is normally not in violation of the GPL.
>
>In your example, as long as your program is never sold or distributed in
>binary form (ie. you did not sell or give it to the bank in binary
>form because the bank owned your labor that created it), and the bank
>never sells or distributes the binaries outside itself, I think you are
>ok.
>
>Since these types of distinctions look legally cloudy to me, I would
>hesitate strongly to agree with your "goes by the wayside for all
>non-software development companies" statement.
>
>That said, you should consult a lawyer.  No one on this list is
>a qualified GPL authority.  Only the courts can make a determination.
>
>CGF, the closest person here to an authority, hates GPL conversations.
>Don't expect him to speak up unless you are clearly in violation, or this
>conversation has already (as it probably has) gone on too long.

I've asked someone more knowledgeable than I to offer an opinion on this
issue but, really, as Brian says, the bottom line is to consult a
lawyer.  If this is a potential real world application, and you really
are writing banking software, then you certainly don't want to just go by
the opinions of a bunch of mailing list geeks.

cgf

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



Re: ssh shell's mount table differs from normal shell's

2003-09-29 Thread Larry Hall
At 04:02 PM 9/29/2003, Larry Hall you wrote:
>Matt,
>
>I'll let you look this one up if you're interested in the previous 
>discussions and details on this subject.  
>
>This is the same old "problem" with ssh that everyone has if they don't 
>authenticate with Windows (and enter their password).  If you don't use 
>password authentication with ssh, Windows doesn't know you as the user you 
>say you are so it won't show you shares for that user.
>
>Don't forget about the email archives when you have a question.  I little 

 ^^^
Ugh!  A

>time looking there can answer allot of questions.
>
>Larry
>
>
>At 02:21 PM 9/29/2003, Matt Swift you wrote:
>
>>I do not understand why the Cygwin mount table should be different in
>>the bash shell that I launch with cygwin.bat or rxvt.exe than the
>>mount table I get when I ssh to the host with the same user.  The
>>shell transcript below illustrates the difference.  The Windows drives
>>H: and S:, which are missing from the mount table in the ssh shell,
>>happen to be remote resources, while the other lettered mounts are
>>physical drives.  But if that were the pattern, the /usr/local/share
>>mount would also be absent in the ssh shell.
>>
>>[vav] swift> hostname; uname -a
>>vav
>>CYGWIN_NT-5.1 vav 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin
>>
>>[vav] swift> id
>>uid=500(swift) gid=544(Administrators) 
>> groups=513(None),544(Administrators),545(Users),547(Power Users),551(Backup 
>> Operators),555(Remote Desktop Users),556(Network Configuration 
>> Operators),1011(Debugger Users)
>>
>>[vav] swift> ssh vav id
>>uid=500(swift) gid=544(Administrators) 
>> groups=513(None),544(Administrators),545(Users),547(Power Users),551(Backup 
>> Operators),555(Remote Desktop Users),556(Network Configuration 
>> Operators),1011(Debugger Users)
>>
>>[vav] swift> mount
>>C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system 
>> (binmode)
>>C:\cygwin\bin on /usr/bin type system (binmode)
>>C:\cygwin\lib on /usr/lib type system (binmode)
>>\\beth\share on /usr/local/share type system (binmode)
>>C:\cygwin on / type system (binmode)
>>c: on /cygdrive/c type user (binmode,noumount)
>>h: on /cygdrive/h type user (binmode,noumount)
>>s: on /cygdrive/s type user (binmode,noumount)
>>u: on /cygdrive/u type user (binmode,noumount)
>>v: on /cygdrive/v type user (binmode,noumount)
>>w: on /cygdrive/w type user (binmode,noumount)
>>y: on /cygdrive/y type user (binmode,noumount)
>>
>>[vav] swift> ssh vav mount
>>C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system 
>> (binmode)
>>C:\cygwin\bin on /usr/bin type system (binmode)
>>C:\cygwin\lib on /usr/lib type system (binmode)
>>\\beth\share on /usr/local/share type system (binmode)
>>C:\cygwin on / type system (binmode)
>>c: on /cygdrive/c type user (binmode,noumount)
>>u: on /cygdrive/u type user (binmode,noumount)
>>v: on /cygdrive/v type user (binmode,noumount)
>>w: on /cygdrive/w type user (binmode,noumount)
>>y: on /cygdrive/y type user (binmode,noumount)
>>
>>[vav] swift> cat ~/.ssh/config
>># man ssh_config
>>
>>Host beth
>>HostKeyAlias beth
>>Host beth.swift.xxx
>>HostKeyAlias beth
>>
>>Host vav
>>HostKeyAlias vav
>>Host vav.swift.xxx
>>HostKeyAlias vav
>>
>>Host mercury
>>HostKeyAlias mercury
>>Host mercury.swift.xxx
>>HostKeyAlias mercury
>>
>># No strict checking for computers that are likely to move around.
>>
>>Host luna
>>HostKeyAlias luna
>>StrictHostKeyChecking no
>>CheckHostIP no
>>Host luna.swift.xxx
>>HostKeyAlias luna
>>StrictHostKeyChecking no
>>CheckHostIP no
>>
>>Host zayin
>>HostKeyAlias zayin
>>StrictHostKeyChecking no
>>CheckHostIP no
>>Host zayin.swift.xxx
>>HostKeyAlias zayin
>>StrictHostKeyChecking no
>>CheckHostIP no
>>
>>Host subversions.gnu.org
>>CheckHostIP no
>>Protocol 1
>>
>>
>>--
>>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/

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


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

Re: ln and mkshortcut inconsistent in handling of .exe extension

2003-09-29 Thread Matt Swift

>> "L" == Larry wrote:

L> 'ln' and 'mkshortcut' have different behavior for a reason.  See 
L> .
L> The difference is why 'mkshortcut' exists.  Otherwise, we'd just have
L> 'ln' (which is all we had for quite some time until the need for 
L> different behavior was realized).



I had seen that discussion.  I found no discussion of the particular
interaction of shortcuts/symlinks and the special handling of the .exe
extension.  To predict the results of the commands I listed, I had to
experiment.

Second, I still don't understand why `ln' shouldn't behave the way I
suggested: how is it better the way it is than if `ln -s' never
created broken shortcuts and 'ln' (hardlink) defaulted to a target of
"foo.exe" when the supplied target "foo" doesn't exist?  


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



BSD 4.3 style fd passing

2003-09-29 Thread Prabhanjan Kambadur
Hi,

I was wondering whether BSD 4.3 style fd passing (or any form of FD
passing) is supported in CYGWIN 1.5.5. I tried a simple test program for
this purpose and it looks like fd passing between user processes is not
supported. Am I right in thinking so or is there any CYGWIN specific stuff
that I am missing. I was unable to find any conclusive mail archive on
this subject.

I have attached the test program.

Regards,
Anju

This too shall pass ..

fd_passing.c.gz
Description: FD passing .. zip file
--
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/

Using authentication under Apache for Cygwin

2003-09-29 Thread Andrew DeFaria
Now that Apache for Cygwin seems to work more reliably I have started 
using it as my web server. However authentication (that was working with 
Apache for Windows) broke. I'm wondering if this is an Apache for Cygwin 
specific problem.

I used to have this implemented at the server level in the httpd.conf 
file like so:

# Secure addbug form

   AuthName "permission to add a bug"
   AuthType Basic
   AuthUserFile /etc/apache/addbug_users
   Require valid-user

However that fails to work. The user is let in without being prompted 
for a username/password. I've also tried using a .htaccess file:

AuthType Basic
AuthName "permission to add a bug"
AuthUserFile /etc/apache/addbug_users
Require valid-user

With the same non-success. I had cranked up the loglevel in the hopes 
that something about the failure would be written to the logs but 
nothing is. How can I debug/fix this? Does Apache for Cygwin do any 
authentication at all?

Apache 1.3.24; Cygwin 1.5.4

===
I love defenseless animals, especially in a good gravy


--
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: Using authentication under Apache for Cygwin

2003-09-29 Thread Stipe Tolj
> Now that Apache for Cygwin seems to work more reliably I have started
> using it as my web server. However authentication (that was working with
> Apache for Windows) broke. I'm wondering if this is an Apache for Cygwin
> specific problem.
> 
> I used to have this implemented at the server level in the httpd.conf
> file like so:
> 
> # Secure addbug form
> 
> AuthName "permission to add a bug"
> AuthType Basic
> AuthUserFile /etc/apache/addbug_users
> Require valid-user
> 
> 
> However that fails to work. The user is let in without being prompted
> for a username/password. I've also tried using a .htaccess file:
> 
> AuthType Basic
> AuthName "permission to add a bug"
> AuthUserFile /etc/apache/addbug_users
> 
> Require valid-user
> 
> With the same non-success. I had cranked up the loglevel in the hopes
> that something about the failure would be written to the logs but
> nothing is. How can I debug/fix this? Does Apache for Cygwin do any
> authentication at all?
> 
> Apache 1.3.24; Cygwin 1.5.4

did you used "AuthGroupFile /dev/null" in this scope too?

I have no clue for this, because Authentication using the standard
mod_auth was working very reliably since decades for me.

BTW, why is the  path starting with *two* slashes? Maybe we
got the raeson for this behaviour at this point.

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

--
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: BSD 4.3 style fd passing

2003-09-29 Thread Christopher Faylor
On Mon, Sep 29, 2003 at 05:26:13PM -0500, Prabhanjan Kambadur wrote:
>I was wondering whether BSD 4.3 style fd passing (or any form of FD
>passing) is supported in CYGWIN 1.5.5.

It is not supported and there are no plans to support it.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to [EMAIL PROTECTED]
and be permanently blocked from mailing lists at sources.redhat.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: Using authentication under Apache for Cygwin

2003-09-29 Thread Stipe Tolj
> With the same non-success. I had cranked up the loglevel in the hopes
> that something about the failure would be written to the logs but
> nothing is. How can I debug/fix this? Does Apache for Cygwin do any
> authentication at all?

yes it does (or did ;) at least for a considerable time. I don't think
this is a Cygwin or Apache for Cygwin specific problem. I suggest it's
more to a mis-configuration.

Did you try to have standard Basic HTTP Auth on a "fresh" httpd.conf
that comes from the distribution itself?

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are

--
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: Using authentication under Apache for Cygwin

2003-09-29 Thread Brian Dessent
Andrew DeFaria wrote:

> # Secure addbug form
> 

My WAG is that it has something to do with this UNC path.  I don't know
whether the "//" thing is currently deprecated or not, but I do remember
seeing a recent check-in dealing with either removing or re-enabling it,
or something like that.

Why not try putting all that in a .htaccess file in the addbug
directory?

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/



gcc-3.2: gcc driver doesn't pick up crt0.a from /usr/lib

2003-09-29 Thread Doru Carastan
Hello,

I am facing a gcc-3.2 configuration problem and I would like to ask your 
opinion about it. I have built an i686-pc-cygwin gcc compiler on Linux 
using a gcc-3.2 i686-pc-linux-gnu to i686-pc-cygwin cross compiler I 
have built and installed in $HOME/cygwin.

r=$HOME/cygwin
i=$HOME/install
# Build, host, target
b=`$r/src/$binutils/config.guess`
h=i686-pc-cygwin
t=i686-pc-cygwin
#
mkdir -p "$r/src/build/$gcc" && \
cd "$r/src/build/$gcc" && \
"$r/src/$gcc/configure" --build=$b --host=$h --target=$t \
  --prefix=/usr --includedir=/nonexistent/include \
  --enable-languages=c,c++ \
  --enable-threads=posix \
  --with-system-zlib \
  --enable-nls \
  --without-included-gettext \
  --disable-version-specific-runtime-libs \
  --enable-shared \
  --enable-haifa \
  --enable-interpreter && \
make all && \
make install prefix="$i/$gcc/usr" && \
cd "$i/$gcc" && tar -cf "$r/$gcc.tar" *
At build time I have $HOME/i686-pc-cygwin/lib stuffed with the 
i686-pc-cygwin lib files including crt0.o. It builds fine, but when I 
install it on Cygwin it can't find crt0.o. /usr/lib.crt0.o is available 
but gcc it doesn't even look in /usr/lib:

$ gcc -print-search-dirs
install: /usr/lib/gcc-lib/i686-pc-cygwin/3.2/
programs: 
=/usr/lib/gcc-lib/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/3.2/:/usr/lib/gcc/i686-pc-cygwin/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/
libraries: 
=/usr/lib/gcc-lib/i686-pc-cygwin/3.2/:/usr/lib/gcc/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/lib/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/lib/

The stock Cygwin gcc and also the native Linux one have a libraries line 
like:

install: /usr/lib/gcc-lib/i686-pc-cygwin/3.2/
programs: 
=/usr/lib/gcc-lib/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/3.2/:/usr/lib/gcc/i686-pc-cygwin/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/
libraries: 
=/usr/lib/gcc-lib/i686-pc-cygwin/3.2/:/usr/lib/gcc/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/lib/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/lib/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../:/lib/i686-pc-cygwin/3.2/:/lib/:/usr/lib/i686-pc-cygwin/3.2/:/usr/lib/

Any ideas?

Thank you,

--
Doru Carastan
*\\\///* WinHost Contractor
||\\//|| 408-992-4497
|||\/||| [EMAIL PROTECTED]


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


munmap bug test program

2003-09-29 Thread peter garrone
This test program highlights the recent munmap problem addressed by Corinna.
It works with the updated mmap, and with linux, fails on cygwin with the prior mmap.

/**
 * mmap test.
 * mmaps two chunks of adjacent memory, then munmaps one and a half,
 * then sees if the remainder is still useable.
 */

#include 
#include 
#include 
#include 
#include 
#include 
#include 

#ifndef _POSIX_MAPPED_FILES
#warning Testing mmap/munmap, but _POSIX_MAPPED_FILES not defined.
#endif

#define CHUNKSIZE 0x1

#undef Dim
#define Dim(x) ((int)(sizeof(x)/sizeof(x[0])))
void * mapping1,*mapping2;
char buff[CHUNKSIZE*4];
int main()
{
int fd;
int r;
int temp_open_flags;
char name[] = "test_cygwin_munmapXX";
fd = mkstemp(name);
assert(fd != -1);
temp_open_flags = fcntl(fd, F_GETFL);
assert(temp_open_flags != -1);
assert((temp_open_flags & O_RDWR) == O_RDWR);

/* Have to write to the file for mapping to work. */
r = write(fd, buff, sizeof(buff));
assert(r == sizeof(buff));


mapping1 = mmap(0, 2*CHUNKSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
assert(mapping1 != MAP_FAILED);

mapping2 = mmap(mapping1 + 2*CHUNKSIZE, 2*CHUNKSIZE, 
PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 
2*CHUNKSIZE);

if(mapping2 == MAP_FAILED)
{
printf("OS wont do contiguous memory file mappings. Cant do test. Try 
changing CHUNKSIZE\n");
munmap(mapping1, 2*CHUNKSIZE);
close(fd);
unlink(name);
exit(0);
}

printf("mappings: %x %x\n",mapping1,mapping2);

/* Unmap from middle of first chunk to end of second chunk. */
r = munmap(mapping1 + CHUNKSIZE, 3*CHUNKSIZE);
assert(r == 0);

/* now try setting the first half of the first chunk */
memset(mapping1, 0, CHUNKSIZE);

close(fd);

/* Unmap the last bit, so hopefully the unlink of the temporary file will 
work. */
r = munmap(mapping1, CHUNKSIZE);
assert(r == 0);

r = unlink(name);
assert(r == 0);

return 0;
}

-- 
__
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze

--
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: Using authentication under Apache for Cygwin

2003-09-29 Thread Andrew DeFaria
Stipe Tolj wrote:

Now that Apache for Cygwin seems to work more reliably I have started 
using it as my web server. However authentication (that was working 
with Apache for Windows) broke. I'm wondering if this is an Apache 
for Cygwin specific problem.

I used to have this implemented at the server level in the httpd.conf 
file like so:

# Secure addbug form

AuthName "permission to add a bug"
AuthType Basic
AuthUserFile /etc/apache/addbug_users
Require valid-user

However that fails to work. The user is let in without being prompted 
for a username/password. I've also tried using a .htaccess file:

AuthType Basic
AuthName "permission to add a bug"
AuthUserFile /etc/apache/addbug_users
Require valid-user

With the same non-success. I had cranked up the loglevel in the hopes 
that something about the failure would be written to the logs but 
nothing is. How can I debug/fix this? Does Apache for Cygwin do any 
authentication at all?

Apache 1.3.24; Cygwin 1.5.4
did you used "AuthGroupFile /dev/null" in this scope too?
Just did (in the .htaccess file). Didn't change anything.

I have no clue for this, because Authentication using the standard 
mod_auth was working very reliably since decades for me.

BTW, why is the  path starting with *two* slashes? Maybe we 
got the raeson for this behaviour at this point.
The two slashes indicate a UNC name. In most aspects of Cygwin/Windows 
slashes can stand in for backslashes and are particularly useful. 
Otherwise one needs to have 
sonscentral\\users\\adefaria\\www\\Internal\\Release\\addbug\\!

As I said, this configuration was working in Apache for Windows (where I 
was using the  directive and a path like 
\\sonscentral\users\adefaria\www\Internal\Release\addbug\ - no need to 
double the backslashes for just Windows).
===
5 days a week my body is a temple. The other two, it's an amusement park.



--
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: Using authentication under Apache for Cygwin

2003-09-29 Thread Andrew DeFaria
Stipe Tolj wrote:

With the same non-success. I had cranked up the loglevel in the hopes 
that something about the failure would be written to the logs but 
nothing is. How can I debug/fix this? Does Apache for Cygwin do any 
authentication at all?
yes it does (or did ;) at least for a considerable time. I don't think 
this is a Cygwin or Apache for Cygwin specific problem. I suggest it's 
more to a mis-configuration.
I would tend to agree except this config worked with Apache for Windows.

Did you try to have standard Basic HTTP Auth on a "fresh" httpd.conf 
that comes from the distribution itself?
Good idea. Tried it. Didn't work:

$ net stop apache
The Cygwin Apache service is stopping
The Cygwin Apache service was stopped successfully.
$ cd /etc/apache
$ mv httpd.conf httpd.conf.save
$ cp ../apache.new/httpd.conf httpd.conf
$ cp -rp ~/www/Internal/Release/addbug /var/www/htdocs
$ ll /var/www/htdocs/addbug
total 15
drwxr-xr-x+   2 adefaria Domain U0 Sep 29 19:17 ./
drwx--+   4 adefaria Domain U0 Sep 29 19:33 ../
-rw-r--r--1 adefaria Domain U  132 Sep 29 19:17 .htaccess
-rw-r--r--1 adefaria Domain U   48 Sep 18 16:06 addbug_users
-rw-r--r--1 adefaria Domain U8 Sep 27 15:40 current_release
-rwxr-xr-x1 adefaria Domain U 5293 Sep  9 17:05 index.cgi*
-rwxr-xr-x1 adefaria Domain U 5233 May 19 17:10 index.cgi.save*
I had to add ExecCGI and index.cgi to httpd.conf but that's all I 
changed. When I went to "addbug" again it let me in there without any 
authentication. Nothing to report in the log files.

Perhaps we should take this offline...
===
Ever stop to think, and forget to start again?


--
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: package list maintainer wanted (was Re: replacement for Elfyn?)

2003-09-29 Thread Peter A. Castro
On Mon, 29 Sep 2003, Christopher Faylor wrote:

> On Mon, Sep 29, 2003 at 10:46:51AM +0200, Corinna Vinschen wrote:
> >On Sun, Sep 28, 2003 at 12:11:54PM -0400, Christopher Faylor wrote:
> >> Do we have any volunteers to replace Elfyn as the keeper of the pending
> >> package list and uploader of packages?
> >> [...]
> >> Corinna, if you want to keep the mantle, that's fine with me.  I just
> >> don't want to overload you.
> >
> >I would be more than happy if somebody would take over.
>
> I'm changing the subject to make it a little clearer.
>
> We need someone (i.e., a volunteer) to maintain the list of pending
> packages and to upload packages to sources.redhat.com.  I'd be happy to
> give access to sources.redhat.com to the appropriate person and to help
> set up a tracking database, if necessary.  Or, if we want to just do
> this the old fashioned flat text way, that's fine, too.

Tell me what the job entails.  I might be willing to do it.

> cgf

-- 
Peter A. Castro <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
"Cats are just autistic Dogs" -- Dr. Tony Attwood

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



package list maintainer wanted (was Re: replacement for Elfyn?)

2003-09-29 Thread Christopher Faylor
On Mon, Sep 29, 2003 at 10:46:51AM +0200, Corinna Vinschen wrote:
>On Sun, Sep 28, 2003 at 12:11:54PM -0400, Christopher Faylor wrote:
>> Do we have any volunteers to replace Elfyn as the keeper of the pending
>> package list and uploader of packages?
>> [...]
>> Corinna, if you want to keep the mantle, that's fine with me.  I just
>> don't want to overload you.
>
>I would be more than happy if somebody would take over.

I'm changing the subject to make it a little clearer.

We need someone (i.e., a volunteer) to maintain the list of pending
packages and to upload packages to sources.redhat.com.  I'd be happy to
give access to sources.redhat.com to the appropriate person and to help
set up a tracking database, if necessary.  Or, if we want to just do
this the old fashioned flat text way, that's fine, too.

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: XFree86-bin-icons

2003-09-29 Thread Harold L Hunt II
[Discussion on this issue is now taking place where it should have in 
the first place: cygwin-xfree.  Please follow the cygwin-xfree mailing 
list for further posts.]

Igor,

Okay, that explains why I couldn't find the message in cygwin-xfree.  I 
really wish someone would have redirected the question over here... I 
never saw it.

> FWIW, you can force the order of execution of the XFree86-bin-icons.sh
> postinstall script by making the package dependent on XFree86-bin and
> others, but that would most likely defeat the purpose of the package.
Thanks.  I actually did that just now, right before you suggested it. 
However, I didn't know that it would force the order of post-install 
script execution; that is a nice side-effect.  The bin-icons package 
should logically depend on the bin package.  People can manually 
unselect it if they want to.


The XFree86-bin-icons package is buggy.  It's basically a postinstall
script that tries to create icons for the X programs that are installed
on your machine.  The problem is that it tries to create them in the
Start Menu for "All Users" without checking whether the current user can
write to it.
That's not entirely true.  For example, my account has Administrator 
priveleges on my machine, the script runs fine when I launch it from a 
bash prompt; so file permissions are not an issue.

I'm not quite sure why it hangs for you, but you can try
runnning that script manually via "bash -x" and seeing where it hangs.
It doesn't hang when you do this.

Something strange is going on here... setup.exe says "Running: No 
Package /etc/postinstal/XFree86-bin-icons".  What is up with the "No 
Package"?  Is that indicating the real problem?

Another thing is that an Uninstall of XFree86-bin-icons also hangs when 
it tries to run the preremove script.  Yet, running the preremove script 
by hand never causes any problems (e.g. bash -x 
/etc/preremove/XFree86-bin-icons.sh).

What gives?

Harold

--
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: Setup 2.358 Hangs During Post-Install Script

2003-09-29 Thread Jerry James
Igor wrote:

> The XFree86-bin-icons package is buggy.  It's basically a postinstall
> script that tries to create icons for the X programs that are installed on
> your machine.  The problem is that it tries to create them in the Start
> Menu for "All Users" without checking whether the current user can write
> to it.  I'm not quite sure why it hangs for you, but you can try running
> that script manually via "bash -x" and seeing where it hangs.  If you do
> investigate, please post your findings to the cygwin-xfree list.

I had the same problem, but when I ran the script manually, it worked
without complaint.  I just now tried to upgrade to the latest released
packages, including the upgrade to XFree86-bin-icons 4.3.0-4 from
4.3.0-3.  The *uninstall* process hung.  When I ran the script manually,
it said:

rmdir: removing directory, /cygdrive/c/Documents and Settings/All Users/Start 
Menu/Programs/Cygwin-XFree86/Editors
rmdir: removing directory, /cygdrive/c/Documents and Settings/All Users/Start 
Menu/Programs/Cygwin-XFree86/Games
rmdir: removing directory, /cygdrive/c/Documents and Settings/All Users/Start 
Menu/Programs/Cygwin-XFree86/Information
rmdir: removing directory, /cygdrive/c/Documents and Settings/All Users/Start 
Menu/Programs/Cygwin-XFree86/Tools
rmdir: removing directory, /cygdrive/c/Documents and Settings/All Users/Start 
Menu/Programs/Cygwin-XFree86/Toys
rmdir: removing directory, /cygdrive/c/Documents and Settings/All Users/Start 
Menu/Programs/Cygwin-XFree86
rmdir: `/cygdrive/c/Documents and Settings/All Users/Start 
Menu/Programs/Cygwin-XFree86': Permission denied
rmdir: removing directory, /cygdrive/c/Documents and Settings/All Users/Start 
Menu/Programs/Cygwin-XFree86

And then it exited, so I'm guessing it was Setup (version 2.415) itself
that hung.  The bit about permission denied is nonsense, since I am
logged in as Administrator.  What is true is that that directory was not
empty, since many X packages did not need upgrading at that time.
However, I have no idea if that had anything to do with the hang.

This is on a Windows XP Pro box.

HTH.  Regards,
-- 
Jerry James
http://www.ittc.ku.edu/~james/

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



redirection unexpected error

2003-09-29 Thread Seth Rubin

After setting up Cygwin on an XP Home machine, some apps, notably vi and
postgresql, are erroring out with:

  syntax error: redirection unexpected

Any clue about what to do about this?  Thanks.

-- Seth


--
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 of cron in cygwin xp

2003-09-29 Thread Igor Pechtchanski
Chunyu,

Please do not send Cygwin questions in personal mail unless specifically
requested.  All discussion of cygwin-related topics should happen on the
Cygwin list unless specifically requested otherwise.  One of the benefits
is that the discussion ends up in the list archives.  Another is that you
have access to the expertise of many people instead of just one.

For your convenience, I'm redirecting this query to the Cygwin list.  More
replies below.

On Mon, 29 Sep 2003, Chunyu Liu wrote:

> Dear Igor Pechtchanski,
>
> I noticed that you've been trying discussed this problem in the forum.
> But I don't know whether you had the conclusion on this.
> Would you mind helping me?
>
> I have tried
> cygrunsrv -I cron -p /usr/sbin/cron -a -D
> cygrunsrv -S cron
>
> and set /var/run/cron.pid to a+rw,
>
> At the "-S cron" step, I can even see the new record in the log file at
> /var/log, saying
> [1652] cron started
> But cygwin pompts:
> "cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
> The service has not been started."
>
> And "ps" does not show job of cron running. The cron does not do any
> scheduled work either.
>
> I checked Windows Services control panel, the cron is associated with
> cygrunsrv there. But whenever it's "started", it stopped immediately.
>
> Any help would be greatly appreciated!
> Chunyu Liu

Is there any information in the log on why the cron program couldn't run?
Can you run cron from the command line?  ...From a SYSTEM-owned shell?
Did you search the list archives for a similar problem?  Did you run Mark
Harig's "cron_diagnose.sh"?

Also, please read and follow the Cygwin problem reporting guidelines at
.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: redirection unexpected error

2003-09-29 Thread Igor Pechtchanski
On Mon, 29 Sep 2003, Seth Rubin wrote:

> After setting up Cygwin on an XP Home machine, some apps, notably vi and
> postgresql, are erroring out with:
>
>   syntax error: redirection unexpected
>
> Any clue about what to do about this?  Thanks.
> -- Seth

At a guess, you might have an alias that's doing something weird (e.g., a
csh alias in bash).  Look at the output of "type -a vi" and "type -a
postgresql" (if you use bash0.  Also, please read and follow the Cygwin
problem reporting guidelines at .
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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: Using authentication under Apache for Cygwin

2003-09-29 Thread S. L.
[...]
> # Secure addbug form
> 
> AuthName "permission to add a bug"
> AuthType Basic
> AuthUserFile /etc/apache/addbug_users
> Require valid-user
> 
> 
> However that fails to work.
[...]

An "AllowOverride AuthConfig" directive, must also be placed.
E.g. 


Options Indexes FollowSymLinks
AllowOverride AuthConfig
order deny,allow
allow from all

 
and placing all authentication stuff in .htaccess, should do it.

SLao

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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