RE: CSAgent warning with setup.exe

2005-03-06 Thread Dave Korn
Original Message
>From: Jean-Sebastien Trottier
>Sent: 06 March 2005 04:10

> Hmmm... I just tried running http://www.cygwin.com/setup.exe from my
> computer at Cisco and the security agent did not report any warnings...

  Since it is a known fact that it _does_ legitimately contain
self-modifying code, the fact that your system doesn't warn must mean it is
not configured to warn about self-modifying code.

> I don't want to be alarming but maybe you should investigate a bit
> further...

  Well, your report is a false negative, so it's not grounds for suspicion
in itself.
 
> At what time during the execution/installation did the warning appear?

  It should be pretty much immediately the thing gets running, as soon as it
tries to call any of the wininet or advapi/scm functions.

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


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



Re: Error on make expat-1.95.8

2005-03-06 Thread Gerrit P. Haase
Robert Mark Bram wrote:
Hi All!
I am getting an error while trying to compile expat-1.95.8
I had this error first:
http://www.cygwin.com/ml/cygwin/2003-04/msg01686.html
and implemented the solution suggested.
This is basically what I am doing.  However I didn't tried this with
the very latest libtool releases.
However, when I tried make again, I got the following error:
12:19 PM /cygdrive/f/_oginals/cygwin/expat-1.95.8
$ make
/bin/bash ./libtool --silent --mode=link gcc -g -O2 -Wall 
-Wmissing-prototypes -Wstrict-prototypes -
fexceptions -DHAVE_EXPAT_CONFIG_H   -I./lib -I. -no-undefined 
-version-info 5:0:5 -rpath /usr/local/
lib  -o libexpat.la lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
libtool: link: `lib/xmlparse.lo' is not a valid libtool object
make: *** [libexpat.la] Error 1

Does anyone have any clues about this?
1. Expat is included in the netrelease, install it using setup.exe.
2. If you really need to rebuild yourself, get the source from the
   Cygwin mirrors which includes my patch to build clean on Cygwin.
Gerrit (Expat maintainer)
--
=^..^=
Action Soccer: http://www.action-soccer.de/?lv=de&id=505
(german online game)
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Problems instaling perl Net::Pcap module

2005-03-06 Thread Gerrit P. Haase
SonOfLilit wrote:
I hope this is the right place to post this.
The steps I went through:
* d/l it
* extract
* cd to dir
* d/l WinPcap developer kit and put ./lib to my /lib/Pcap and ./include to my
/usr/include, without replacing 2-3 .h headers that I already had
* $ perl Makefile.PL INC=-I/usr/include LIBS=-L/lib/Pcap
Says that all is right
* $ make
Gives me tons of warnings and errors - the errors about undefined references to
many pcap related symbols like '_pcap_dump' in pcap.c, while processing 
*pcap.o*.
Clue anyone?
Errors:
'Pcap.o(.text+0x12b7):Pcap.c: undefined reference to `_pcap_open_live
All the symbols are defined where?  Is there an archive missing at the
link command?  You need to link against the WinPcap Library IMO.
Gerrit
--
=^..^=
Action Soccer: http://www.action-soccer.de/?lv=de&id=505
(german online game)
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Problems creating "-mno-cygwin" DLLs with libtool.

2005-03-06 Thread Gerrit P. Haase
Charles Wilson wrote:
 > OTOH, I never have understood why tools insist on including such 
things as
 > "-lcygwin" or "-lc" on a linker command line.

There's a good reason for libtool to do so, but it escapes me at the 
moment.  Trust Me(tm).

Since gcc already includes libcygwin and libgcc and such for the linker
depending on the flags used, it is obviously a bug in the libtool
implementation if it needs to include the libraries on its own?
Gerrit
--
=^..^=
Action Soccer: http://www.action-soccer.de/?lv=de&id=505
(german online game)
--
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/


cygpath --help -> crash

2005-03-06 Thread Arend-Jan Westhoff
When running:
cygpath --help
apparently a crash occurs. Output:
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
 68 [main] cygpath 1964 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
  25808 [main] cygpath 1964 open_stackdumpfile: Dumping stack trace to
cygpath.exe.stackdumpException: STATUS_ACCESS_VIOLATION at eip=610D90E1
eax= ebx=0001 ecx= edx=0068 esi=0015 edi=0068
ebp=0022D858 esp=0022D854 program=E:\cygwin\bin\cygpath.exe, pid 1988, thread 
main
cs=001B ds=0023 es=0023 fs=0038 gs= ss=0023
Stack trace:
Frame Function  Args
0022D858  610D90E1  (0068, 0022D8FE, 0040115C, 0001)
0022ECF8  610DCB8F  (0022F168, 610F6D68, 00401100, 0022ED54)
0022ED18  610DC5F8  (610F6D68, 00401100, 0022ED48, )
0022ED38  610DE31F  (610F6D68, 00401100, 0022EFD4, 0022EFD4)
0022ED58  610938EF  (610F6D68, , 00404170, 00404000)
0022EFB8  00402BA8  (0002, 0A050158, 0A0500A8, 0001)
0022F008  610064A3  (0022F020, 00030002, 00050004, 00070006)
0022FF88  610066B0  (, , , )
End of stack trace

Cygwin Configuration Diagnostics
Current System Time: Sat Mar 05 10:34:40 2005

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:   C:\WINNT\system32
C:\WINNT
C:\WINNT\System32\Wbem
C:\Program Files\Common Files\Adaptec Shared\System
E:\cygwin\usr\local\bin
E:\cygwin\usr\bin
E:\cygwin\bin
E:\cygwin\usr\X11R6\bin
D:\Program Files\rksupport
D:\Program Files\Subversion\bin
E:\Borland\BCC55\Bin
D:\Program Files\7-Zip
D:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
D:\Program Files\Microsoft Visual Studio\Common\Tools
D:\Program Files\Microsoft Visual Studio\VC98\bin
D:\uts
.

Output from E:\cygwin\bin\id.exe (nontsec)
UID: 1000(-)   GID: 513(None)
513(None)

Output from E:\cygwin\bin\id.exe (ntsec)
UID: 1000(-)GID: 513(None)
0(root) 513(None)   544(Administrators) 545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

Path = `C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program 
Files\Common Files\Adaptec 
Shared\System;E:\cygwin\usr\local\bin;E:\cygwin\usr\bin;E:\cygwin\bin;E:\cygwin\usr\X11R6\bin;D:\Program
 Files\rksupport;D:\Program 
Files\Subversion\bin;E:\Borland\BCC55\Bin;D:\Program Files\7-Zip;D:\Program 
Files\Microsoft Visual Studio\Common\Tools\WinNT;D:\Program Files\Microsoft 
Visual Studio\Common\MSDev98\Bin;D:\Program Files\Microsoft Visual 
Studio\Common\Tools;D:\Program Files\Microsoft Visual Studio\VC98\bin;D:\uts;'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\-\Application Data'
APR_ICONV_PATH = `D:\Program Files\Subversion\iconv'
CLASSPATH = `"C:\Program Files\Java\j2re1.4.1_03\lib\ext\QTJava.zip"'
CommonProgramFiles = `C:\Program Files\Common Files'
COMPUTERNAME = `LAMPION'
ComSpec = `C:\WINNT\system32\cmd.exe'
DIRCMD = `/ogn'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\-'
include = `D:\Program Files\Microsoft Visual Studio\VC98\atl\include;D:\Program 
Files\Microsoft Visual Studio\VC98\mfc\include;D:\Program Files\Microsoft 
Visual Studio\VC98\include'
lib = `D:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;D:\Program 
Files\Microsoft Visual Studio\VC98\lib'
LOGONSERVER = `\\LAMPION'
MSDevDir = `D:\Program Files\Microsoft Visual Studio\Common\MSDev98'
NTRESKIT = `D:\Program Files\rksupport'
NUMBER_OF_PROCESSORS = `2'
OS = `Windows_NT'
Os2LibPath = `C:\WINNT\system32\os2\dll;'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 5 Stepping 1, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0501'
ProgramFiles = `C:\Program Files'
PROMPT = `$P$+$G'
QTJAVA = `"C:\Program Files\Java\j2re1.4.1_03\lib\ext\QTJava.zip"'
SystemDrive = `C:'
SystemRoot = `C:\WINNT'
TEMP = `C:\DOCUME~1\-\LOCALS~1\Temp'
TMP = `C:\DOCUME~1\-\LOCALS~1\Temp'
tvdumpflags = `10'
USERDOMAIN = `LAMPION'
USERNAME = `-'
USERPROFILE = `C:\Documents and Settings\-'
windir = `C:\WINNT'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0020
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `E:\cygwin'
  flags = 0x0008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `E:\cygwin/bin'
  flags = 0x0008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin

Re: cygpath --help -> crash

2005-03-06 Thread Arend-Jan Westhoff
>When running:
>   cygpath --help
>apparently a crash occurs. Output:
>   Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
> 68 [main] cygpath 1964 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
>  25808 [main] cygpath 1964 open_stackdumpfile: Dumping stack trace to
cygpath.exe.stackdump 
>
Oeps forgot to add the version information, cygpath --vesion:

cygpath (cygwin) 1.37
Path Conversion Utility
Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
Compiled on Mar  1 2005

--
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: Error on make expat-1.95.8

2005-03-06 Thread Robert Mark Bram
Hi Gerrit,

1. Expat is included in the netrelease, install it using setup.exe.
What does this mean? Is this a specific package perhaps?
2. If you really need to rebuild yourself, get the source from the
Cygwin mirrors which includes my patch to build clean on Cygwin.
Well, I am actaully trying to compile zoom-1.0.2beta2.. I tried without 
the new expat packages and still get errors:

Awfully confused! :)
Rob
:)
11:49 PM /cygdrive/f/_oginals/textAdventures/zoom/zoom-1.0.2beta2
$ ./configure && make
checking for tput... /usr/bin/tput
checking code for bold... ok
checking code for underline... ok
checking code for cyan... not available
zoom version 1.0.2beta2 configuration script
Copyright (c) Andrew Hunter, 2000-2004
Please see the file COPYING for the information on copying and warranties
Check the README and INSTALL files for important information on installing
this software
  Now configuring automake
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
  Now configuring compilers
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for bison... no
checking for byacc... no
checking for perl... /usr/bin/perl
  Now configuring compiler characteristics
checking for inline... inline
checking if the C compiler (gcc) supports -Wall... yes
checking if the C compiler (gcc) supports -finline-functions... yes
checking if the C compiler (gcc) supports -funroll-loops... yes
checking if the C compiler (gcc) supports -fomit-frame-pointer... yes
  Now configuring architecture characteristics
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unsigned char... yes
checking size of unsigned char... 1
checking for short int... yes
checking size of short int... 2
checking for int... yes
checking size of int... 4
checking for long int... yes
checking size of long int... 4
checking byte ordering of signed short int... backwards
  Now configuring features
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking if the C compiler (gcc) supports -mwindows... yes
checking if the linker supports -mwindows... yes
checking if the C compiler (gcc) supports -mno-cygwin... yes
checking if the linker supports -mno-cygwin... yes
checking for windres... /usr/bin/windres
checking that we can link to various windows libraries... woohoo!
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for gettimeofday... no
checking for argp... no
checking for getopt... no
  Generating files
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating src/ztypes.h
config.status: creating src/zoom.rc
config.status: creating builder/Makefile
config.status: creating manual/Makefile
config.status: creating bonus/Makefile
config.status: creating config.h
config.status: executing depfiles commands
cd . && /bin/bash 
/cygdrive/f/_oginals/textAdventures/zoom/zoom-1.0.2beta2/missing --run 
aclocal-1.9
 -I m4
m4/util.m4:1: warning: underquoted definition of UTIL_CHECK_CFLAG
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
m4/util.m4:12: warning: underquoted definition of UTIL_CHECK_LDFLAG
m4/display.m4:7: warning: underquoted definition of UTIL_DISPLAY_INIT
m4/display.m4:22: warning: underquoted definition of UTIL_DISPLAY_CODE
m4/display.m4:50: warning: underquoted definition of UTIL_DISPLAY_HEADER
m4/display.m4:62: warning: underquoted definition of UTIL_DISPLAY_SECTION
m4/display.m4:70: warning: underquoted definition of UTIL_DISPLAY_INFO
m4/cocoa.m4:3: warning: underquoted definition of COCOA_DETECT
m4/carbon.m4:3: warning: underquoted definition of CARBON_DETECT
m4/carbon.m4:37: warning: underquoted definition of QUICKTIME_DETECT
 cd . && /bin/bash

Re: Error on make expat-1.95.8

2005-03-06 Thread Gerrit P. Haase
Robert Mark Bram wrote:
Hi Gerrit,

1. Expat is included in the netrelease, install it using setup.exe.

What does this mean? Is this a specific package perhaps?
For Cygwin you should be able to install the package 'expat' via
setup.exe, ie. this is done automatically in case you install 'perl'.
The Cygwin 'netrelease' are all packages available from the official
mirrors via setup.exe.

2. If you really need to rebuild yourself, get the source from the
Cygwin mirrors which includes my patch to build clean on Cygwin.

Well, I am actaully trying to compile zoom-1.0.2beta2.. I tried without 
the new expat packages and still get errors:

The error below is not related to expat.

Awfully confused! :)
Rob
:)
11:49 PM /cygdrive/f/_oginals/textAdventures/zoom/zoom-1.0.2beta2
$ ./configure && make
checking for tput... /usr/bin/tput
checking code for bold... ok
checking code for underline... ok
checking code for cyan... not available
zoom version 1.0.2beta2 configuration script
Copyright (c) Andrew Hunter, 2000-2004
Please see the file COPYING for the information on copying and warranties
Check the README and INSTALL files for important information on installing
this software
  Now configuring automake
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
  Now configuring compilers
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for bison... no
checking for byacc... no
checking for perl... /usr/bin/perl
  Now configuring compiler characteristics
checking for inline... inline
checking if the C compiler (gcc) supports -Wall... yes
checking if the C compiler (gcc) supports -finline-functions... yes
checking if the C compiler (gcc) supports -funroll-loops... yes
checking if the C compiler (gcc) supports -fomit-frame-pointer... yes
  Now configuring architecture characteristics
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unsigned char... yes
checking size of unsigned char... 1
checking for short int... yes
checking size of short int... 2
checking for int... yes
checking size of int... 4
checking for long int... yes
checking size of long int... 4
checking byte ordering of signed short int... backwards
  Now configuring features
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking if the C compiler (gcc) supports -mwindows... yes
checking if the linker supports -mwindows... yes
checking if the C compiler (gcc) supports -mno-cygwin... yes
checking if the linker supports -mno-cygwin... yes
checking for windres... /usr/bin/windres
checking that we can link to various windows libraries... woohoo!
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for gettimeofday... no
checking for argp... no
checking for getopt... no
  Generating files
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating src/ztypes.h
config.status: creating src/zoom.rc
config.status: creating builder/Makefile
config.status: creating manual/Makefile
config.status: creating bonus/Makefile
config.status: creating config.h
config.status: executing depfiles commands
cd . && /bin/bash 
/cygdrive/f/_oginals/textAdventures/zoom/zoom-1.0.2beta2/missing --run 
aclocal-1.9
 -I m4
m4/util.m4:1: warning: underquoted definition of UTIL_CHECK_CFLAG
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
m4/util.m4:12: warning: underquoted definition of UTIL_CHECK_LDFLAG
m4/display.m4:7: warning: underquoted definition of UTIL_DISPLAY_INIT
m4/display.m4:22: warning: underquoted definition of UTIL_DISPLAY_CODE
m4/display.m4:50: warning: underquoted definition of UTIL_DISPLAY_HEADER
m4/display.m4:62: warning: underquoted definition of UTIL_DISPLA

Linux client issues with windows sftp server

2005-03-06 Thread Nigel - Kubhae
Hello all,

I am new to this mailing list so please bare with me.

My goal was setup a SFTP server to server files to
clients on Linux and Windows.

So far...

Using the cygwin setup package I have successfully created a
SFTP only (i.e. no ssh) server, on my Windows XP Pro
machine. I have created a user called "sftpuser" on my WinXP
machine, and set read & write access to cygwin and SFTP
directory, the rest of the directories were set to DENY all
access from sftpuser. This effectively has "chrooted" the user
to the SFTP directory.

This setup works well for my Windows clients with filezilla, where they can
list SFTP directory and upload/download to/from that directory. However
my Linux clients using "gftp" can only list from the directory and are
unable to download or upload to the directory, I am aware this could
be likely due to the difference in UNIX and NTFS (ACL) style permissions,
so I have set Windows environment permission to "CYGWIN = ntsec tty"
still to no avail.

Any help would be greatly appreciated.

--
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: cygpath --help -> crash

2005-03-06 Thread Igor Pechtchanski
On Sun, 6 Mar 2005, Arend-Jan Westhoff wrote:

> When running:
>   cygpath --help
> apparently a crash occurs. Output:
>   Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
>  68 [main] cygpath 1964 handle_exceptions: Exception: 
> STATUS_ACCESS_VIOLATION
>   25808 [main] cygpath 1964 open_stackdumpfile: Dumping stack trace to 
> cygpath.exe.stackdump

Looks like a bug in the latest cygpath.  The top of the usage info string
says:

Usage: %s (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...\n\
   %s [-c HANDLE] \n\
   %s [-ADHPSW] \n\

but the program name (prog_name) is only passed in twice.
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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: passwordless ssh (2) failing

2005-03-06 Thread Charles Galpin
On Mar 4, 2005, at 11:56 PM, Isaiah wrote:
This is likely identical to my problem.
If you do `ssh -1 [EMAIL PROTECTED] it will using protocol 1 and not die.
Correct, except I don't want to use ssh1 :)
So does this mean this is a known issue? Is this cygwin related? Any 
fix?

I searched the archive many times and have spent hours on this, but I 
am stumped!

thanks
charles

On Fri, Mar 04, 2005 at 10:30:54PM -0500, Charles Galpin wrote:
This should not be a cygwin issue, but I am completely stumped, so I
thought I had better rule this out.
--
- Isaiah

--
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: Bug diff 2.8.7: Separate dir

2005-03-06 Thread Yitzchak Scott-Thoennes
On Sat, Mar 05, 2005 at 09:52:16PM -0500, Igor Pechtchanski wrote:
> On Sun, 6 Mar 2005, Arend-Jan Westhoff wrote:
> > It also seems inconsequent if what you say is truely correct and what is
> > intended that when I use my file 'a' from my original example and do the
> > following:
> > copy a b
> > that then:
> > diff ./a .\b
> > says that the files are completely different, whereas:
> > diff ./a .\a
> > says they are completely equal, while files a and b are character for
> > character identical!
> 
> diff has an optimization that compares the arguments' inodes, and reports
> identity for the files with the same inode.  No matter which slash you
> use, they both resolve to the same file (only the metadata may be
> different), so the inode is the same.  The inodes for "a" and "b" aren't
> the same, so diff goes ahead and does the comparison (which reports the
> differences in line endings).  Try "ln a c" and compare "a" with "c" using
> your syntax. :-)

This part does sound like a bug.  Perhaps this diff optimization
should be suppressed, since in cases like this, ./a and .\a have
effectively different content.

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



Cygwin (current): Bug in how managed mounts handle reserved words

2005-03-06 Thread Nicholas Wourms
(Note:  I have not re-subscribed to the list yet and probably won't for another 
week or so, so please CC me in any replies - TIA)

Hi,

I've discovered a small bug in how Cygwin (CVS HEAD as of Saturday) handles 
reserved dos names created on managed mounts.  I discovered this while working 
with a FreeBSD cross-compiler (actually CVS discovered it).  Rather then bore 
you with my hypothesis, so here's the details:

OS: Windows XP SP2
FS: NTFS
UNAME: CYGWIN_NT-5.1 foobar 1.5.14(0.122/4/2) 2005-03-02 22:46 i686 unknown 
unknown Cygwin
$CYGWIN: export check_case:strict tty ntea ntsec smbntsec server 
checkcodepage:oem

NOTE: All cygwin packages are up to date.

Steps to reproduce:
---
1) mkdir -p /usr/src/test
2) mount -o managed C:usr\\src\\test /usr/src/test
3) cd /usr/src/test
4) mkdir -p cygwin-src/freebsd-src/sys/dev/digi
5) cd cygwin-src/freebsd-src/sys/dev/digi
6) touch .new.con.CX-IBM.h
7) mv .new.con.CX-IBM.h con.CX-IBM.h

The error it gives me is:

"mv: cannot move `.new.con.CX-IBM.h' to `con.CX-IBM.h': Filename exists with 
different case"

So, I did a strace on the experimental testcase I mentioned above.  In 
addition, I setup a control (known working) testcase which used the steps 
outlined above, except using the filenames ".test.me.now" and "me.now" instead. 
 I've attached the differences between the strace outputs of my experiment and 
control (minus any extraneous differences).  I haven't looked at it in depth, 
so unfortunately I don't have a fix.  However, based on a cursory look, it 
would seem the problem is somewhere in path_conv (either posix or win).

Cheers,
Nicholas


__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
--- /home/Administrator/experimental-testcase.strace2005-03-06 
13:08:46.057875000 -0500
+++ /home/Administrator/control-testcase.strace 2005-03-06 12:50:10.089125000 
-0500
@@ -1,3 +1,3 @@
 [main] mv set_myself: myself->dwProcessId 11776
-[main] mv time: 1110130976 = time (0)
+[main] mv time: 1110131029 = time (0)
 [main] mv set_process_privilege: 0 = set_process_privilege 
(SeChangeNotifyPrivilege, 0)
@@ -213,4 +213,2 @@
 [main] mv sigproc_init: process/signal handling enabled(1001)
-[sig]  mv wait_sig: myself->dwProcessId 11776
-[sig]  mv wait_sig: entering ReadFile loop, readsig 0x708, myself->sendsig 
0x700
 [main] mv tty_list::allocate_tty: console 0x1200550 associated with tty0
@@ -219,3 +217,3 @@
 [main] mv build_fh_pc: fh 0x617D46E8
-[main] mv open_shared: name (null), shared 0xA02 (wanted 0xA02), h 
0x6F4
+[main] mv open_shared: name (null), shared 0xA02 (wanted 0xA02), h 
0x708
 [main] mv add_handle: protecting handle 'cygheap->console_h', inherited flag 1
@@ -226,2 +224,4 @@
 [main] mv fhandler_base::set_flags: filemode set to binary
+[sig] mv wait_sig: myself->dwProcessId 11776
+[sig] mv wait_sig: entering ReadFile loop, readsig 0x6E0, myself->sendsig 0x6DC
 [main] mv fhandler_console::open: incremented open_fhs, now 1
@@ -231,3 +231,3 @@
 [main] mv fhandler_console::output_tcsetattr: 0 = tcsetattr (,22E530) (ENABLE 
FLAGS 3) (lflag 0 oflag 0)
-[main] mv tty::make_pipes: tty0 from_slave 0x6D0, to_slave 0x6D4
+[main] mv tty::make_pipes: tty0 from_slave 0x6CC, to_slave 0x6D0
 [main] mv tty::get_event: created event Global\cygwin1S4-2005-03-02 
22:46.cygtty.output.done.0
@@ -238,6 +238,6 @@
 [main] mv fhandler_console::ioctl: WINSZ: (row=25,col=80)
-[main] mv tty::create_inuse: Global\cygwin1S4-2005-03-02 
22:46.cygtty.

Re: Bug diff 2.8.7: Separate dir

2005-03-06 Thread Brian Dessent
Yitzchak Scott-Thoennes wrote:

> This part does sound like a bug.  Perhaps this diff optimization
> should be suppressed, since in cases like this, ./a and .\a have
> effectively different content.

If anything, you would want to just add a test to the stat-comparison
code to check that both files are opened in the same mode, text/binary. 
But really all that does is let you diff a file to itself, in which case
you know the result already, that every line differs because of
different line endings.  And I don't really see that being a useful
feature.

But really this is rather irrelevent because the diffutils maintainer
(cfg) has already said he has no intention to change diff to fix
improper use of it.

Brian

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



Re: Cygwin (current): Bug in how managed mounts handle reserved words

2005-03-06 Thread Brian Dessent
Nicholas Wourms wrote:

> I've discovered a small bug in how Cygwin (CVS HEAD as of Saturday) handles 
> reserved dos names created on managed mounts.  I discovered this while 
> working with a FreeBSD cross-compiler (actually CVS discovered it).  Rather 
> then bore you with my hypothesis, so here's the details:
> ...

It looks like the code was munging the upper case characters but missed
the leading "con.":

mount_info::conv_to_win32_path: src_path
/usr/src2/test/cygwin-src/freebsd-src/sys/dev/digi/con.CX-IBM.h, dst
C:\Cygnus\cygwin\usr\src2\test\cygwin-src\freebsd-src\sys\dev\digi\con.%43%58-%49%42%4D.h,
flags 0x80A, rc 0

When I tried to reproduce it, I used a filename with all lowercase and
it did munge the "con", so it would seem the uppercase chars was the
problem:

mount_info::conv_to_win32_path: src_path
/usr/src/managed/con.lowercase.h, dst
c:\cygwin\usr\src\managed\%63on.lowercase.h, flags 0x80A, rc 0

...

Nevermind, looks like cgf just checked in a fix:


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/