Arthur I Schwarz | 1 Dec 2004 01:22
Favicon

Re: Setup Documentation


A quick check of the index seems to not show what I'm looking for. I saw
(and must have downloaded) a document which describes what files setup
uses, how to construct the files and like matters. setup-net.html seems to
be a user's manual (by-the-by, it's located in
/usr/share/doc/cygwin-doc-1.3/html etc.).

Thanks. I appreciate the suggestion and time and I have (now) found the
'hidden' location of some interesting 'stuff'.

art

                                                                                                                                   
                      Igor                                                                                                         
                      Pechtchanski             To:      Arthur I Schwarz <Arthur_I_Schwarz <at> raytheon.com>                           
                      <pechtcha <at> cs.nyu         cc:      cygwin <at> cygwin.com                                                          
                      .edu>                    Subject: Re: Setup Documentation                                                    

                      11/30/2004 03:33                                                                                             
                      PM                                                                                                           
                      Please respond                                                                                               
                      to cygwin                                                                                                    

On Tue, 30 Nov 2004, Arthur I Schwarz wrote:

> Sometime in the last several months there was a posting telling where the
> Setup documentation can be found. I can't find the posting (sigh). Can
> anyone tell me if there is and where there is some Setup documentation.
> Something that says what, where, when, and how often?
>
(Continue reading)

Luke Kendall | 1 Dec 2004 01:33
Picon
Picon

Re: PATH and SystemRoot oddity

On 26 Nov, Igor Pechtchanski wrote:
>  On Fri, 26 Nov 2004, Luke Kendall wrote:
>  
> > I see that by default PATH includes some entries like
> > %SystemRoot%/System32
>  >
> > I also note that $SystemRoot is undefined, yet $SYSTEMROOT contains the
> > expected C:\WINDOWS value.
>  >
> > This of course causes problems.  Would a backslash-style path work
> > correctly if it were properly interpolated into the PATH?  Is the %
> > notation special magic for Cygwin to handle DOS-isms?
>  >
> > The case variance may be of interest, in that case.
>  
>  The case variance is a red herring.

Could you explain some more?  I was thinking that if SystemRoot but 
SYSTEMROOT was, it might be relevant.

>  Also, Cygwin doesn't understand the
>  %...% notation.

Sure, of course.

>  OTOH, you're not supposed to be seeing these entries in
>  the actual value of your PATH, either in Windows or in Cygwin.  Such
>  entries are usually caused by the wrong type assigned to the PATH value in
>  the registry (REG_SZ instead of REG_EXPAND_SZ).  Some buggy installers
>  change the type of the PATH registry entry.
(Continue reading)

john m lauck | 1 Dec 2004 04:42
Gravatar

Re: Chrooted OpenSSH for Windows (rssh sftp cygwin)

Thanks, Christian!

I actually got the chrooted sftp session to *work* (! shell commands 
still work).  I made these changes:

--

chroot /cygdrive/c/StudentsShare /usr/sbin/sftp-server

-- 

Basically, I removed the 'exec' from the chroot call.  I thought maybe 
there were insufficient dll's in the chroot C:\StudentsShare.  I copied 
all the local files from the /usr, /bin and /etc folders to my chroot 
and still had the same problem with including the 'exec'.  Does anyone 
know how the exec effects chroot call?  I don’t understand how the exec 
makes it more secure by replacing the current script process.
However, this doesn't stop a user from entering a ! command at the sftp 
prompt.  I had some luck setting file privileges/ownership but that 
seems like a dangerous move to chmod/chown all the files outside of 
C:\StudentsShare.

Any ideas are welcome.

Also (in response to Christian Weinberger), I only need SFTP protocol 2.
I prefer to stick to SFTP just because it's easier to transfer a group 
of files and manipulate folders etc.

With time permitting for my project I may give scponly a try.

(Continue reading)

Ben Duncan | 1 Dec 2004 05:04
Picon

Cygwin Job - Installing Courier/Exim/MySQL under Cygwin

Hello,

 We have a client that requires to run Courier-IMAP with the libmysql 
authentication, and Exim 4.X with mySQL support to setup a mail-server under 
Windows with maildir support.

 I'm looking to outsource the project to an expert with Cygwin, who can tweak 
the Makefiles for Courier/Exim/mysql to compile clean under Windows.

 For more information please contact me via email, ben (at) atmail.nl , to 
discuss rates and the length of the project.

 Thanks Cygwin crew!

Louise Elsea | 1 Dec 2004 06:06
Picon
Favicon

dead links

All the links in the directory below except the Parent come up as not found.
Or am I just clueless?

http://www.cygwin.com/packages/gcc-g++/

If this message should go to a different address, let me know and I will
send it there.

thanks.

Brian Dessent | 1 Dec 2004 06:39
Favicon

Re: Setup Documentation

Arthur I Schwarz wrote:

> A quick check of the index seems to not show what I'm looking for. I saw
> (and must have downloaded) a document which describes what files setup
> uses, how to construct the files and like matters. setup-net.html seems to
> be a user's manual (by-the-by, it's located in
> /usr/share/doc/cygwin-doc-1.3/html etc.).

Do you mean <http://cygwin.com/setup.html>?  It's one click off of the
main cygwin.com page, "Cygwin Packages" under "Contributing".

> ... I have (now) found the 'hidden' location of some interesting 'stuff'.

I have no idea what this means...

Brian

Yitzchak Scott-Thoennes | 1 Dec 2004 09:48
Favicon
Gravatar

truncate() improperly returns EBADF

When using truncate(), EBADF is sometimes improperly returned.  susv3
doesn't list this as a possible errno value for this function.  In
particular, ENOENT should be returned when when path doesn't exist and
EACCES when write permission is denied.

truncate.c:
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>

int main(int argc, char **argv) {
   off_t size;
   char *endptr = argv[2];

   if (argc != 3) {
      fprintf(stderr, "usage: truncate path size\n");
      exit(1);
   }

   errno = 0;
   size = strtoull(argv[2], &endptr, 10);
   if (!endptr || endptr == argv[2] || *endptr || size < 0 ||
       (size == 0 && errno)) {
      fprintf(stderr, "truncate: invalid size\n");
      exit(1);
   }
   printf("truncating %s to %lld bytes\n", argv[1], size);

   if (truncate(argv[1], size)) {
(Continue reading)

John Morrison | 1 Dec 2004 10:07
Picon

Re: Patch to /etc/profile to deal with $HOME with a space

> On Tue, Nov 30, 2004 at 07:33:02PM -0000, John Morrison wrote:
>>> I have just set up Cygwin, and noticed that my default home was under
>>> my
>>> "Documents and Settings" directory (not yet having run mkpasswd).
>>> However,
>>> the /etc/profile setup which tries to only create the warning message
>>> about running mkpasswd and mkgroup once can't deal with a HOME
>>> environment
>>> variable with a space in it. Here is a patch to allow that to work:
>>
>>Thanks,
>>
>>I'm away on a course at the moment and don't have access to the machine
>>with the files I use to generate the package.  I'll be back home on
>>Friday, I'll try and get something out over the weekend or by mid-week at
>>the latest.
>
> Since this has been a persistent problem, pretty much since the inception
> of base-files, can I request that you do an audit of everything in base
> files
> and quote all unquoted access to environment variables in the package?
> It seems like we just keep running across these problems in bits and
> pieces and
> maybe it's time for a concerted effort to wipe these types of problems
> out.

OK.

I did consider changing /etc/postinstall/passwd-grp.sh so that instead of
running
(Continue reading)

Jörg Schaible | 1 Dec 2004 10:25

RE: Patch to /etc/profile to deal with $HOME with a space

Hi John,

John Morrison wrote on Wednesday, December 01, 2004 10:08 AM:

[snip]

> 
> I did consider changing /etc/postinstall/passwd-grp.sh so that
> instead of running 
> 
> /bin/mkpasswd -l -c > /etc/passwd
> 
> it does
> 
> mkpasswd.exe -l -c | sed 's/cygdrive\/.*Documents and Settings/home/'
> > /etc/passwd 

This is nonsense. "Documents and Settings" is localized.

[snip]

- Jörg

Nuno Lopes | 1 Dec 2004 11:50
Picon
Favicon

strange problems with cvs

Hi,

I use CVS with cygwin a long time ago, but after a recent updte it stoped
working. I'm using pserver auth and the cygwin is installed with *DOS*
line-endings.

When I try to do something with cvs -1.11.17- (cvs up, cvs diff, etc..) it
simply returns:
": no such repository"

Normally if I close cygwin, run the setup again (without installing
anything) and opening cygwin again fixes the problem.

If I do a fresh checkout, it will checkout the files with *unix* 
file-endings, which isn't what I asked for..

Does anyone knows whats the problem here? I think it might be cause of the
release of the lastest dll version. (I update cygwin often..)

Thanks,
Nuno Lopes


Gmane