[ANNOUNCEMENT] Updated: cadaver-0.22.5-1

2007-04-11 Thread Dr. Volker Zell
Hi

A new version of 'cadaver' has been uploaded to a server near you.


DESCRIPTION:

Command-line WebDAV client

CYGWIN NEWS:


 o Linked against libneon26

cadaver NEWS:
=

 Changes in release 0.22.5:
  * Update to neon 0.26.3:
   - fix security issue in URI parser, CVE-2007-0157
  * Document netrc support in man page (Sebastian Harl)

 Changes in release 0.22.4:
  * Update to neon 0.26.2 (thanks to Peter O'Gorman).
  * Fixes for OS/2 EMX (Andrew Belov).



INSTALLATION:
=
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
the above mentioned package from the 'Web' category.


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, please choose the one nearest to
you: http://cygwin.com/mirrors.html


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]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


Enjoy
  Volker


--
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: WordNet-3.0

2007-04-11 Thread Dr. Volker Zell
Hi

A new version of 'WordNet' has been uploaded to a server near you.


DESCRIPTION:

An online lexical reference system


CYGWIN NEWS:


 o Update to latest upstream release
 o Switched to cygport build


WordNet NEWS


 Some changes were made to the graphical interface and WordNet library
 with regard to adjective and adverb searches.  The adjective search
 "Synonyms/Related Nouns" was relabeled "Synonyms", and, similarly, the
 adverb search "Synonyms/Stem Adjectives" was relabled "Synonyms".  A
 separate "Related Noun" search was inserted for adjectives, and a
 separate "Base Adjective" search was added for adverbs.


INSTALLATION:
=
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
the above mentioned package from the 'Text' category.


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://mirrors.rcn.net/pub/sourceware/cygwin/ 

has reliable high bandwidth connections.


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]


Enjoy
  Volker


--
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: cron 4.1-1

2007-04-11 Thread Pierre A. Humblet
I have updated cron to version 4.1

NEWS:

Cron

This port is based on Paul Vixie's cron packaged as 4.1 but reporting itself
as 5.0.

The changes (listed in /usr/share/doc/cron/CHANGES) don't appear to break
compatibility with 3.0.

There is a new algorithm to handle time jumps.

Logging of a command can now be suppressed by using the -q switch, such as
in the following example:
* * * * *  -q  /the/script

Package
***
/usr/bin/cron-config is still recommended to install the cron service.

The base environment is now set as under sshd (in the previous package the
environment on NT was the same as that of cygrunsrv, with some variables
deleted, and it was empty on 9x). Variables defined in the crontab are added
to the base, as previously done.

Cron normally uses a mailer such as exim or ssmtp to communicate stdout
and stderr output to the user. Cron uses the symbolic link /usr/sbin/sendmail
to find the mailer. This feature is still supported.

If /usr/sbin/sendmail does not point to a mailer, the cron postinstall script
links it to the (new) script /usr/bin/cronlog.

/usr/bin/cronlog is a "poor man's mailer" that writes cron output (if any)
to HOME/cron.log.  HOME can be superseded in the crontab file.
The temporary output of /usr/bin/cronlog is written to /tmp/cron.XXX.log and
/tmp/cron.XXX.log.err. These files are deleted if all goes well but can
provide useful debugging information if HOME/cron.log cannot be written
(e.g. on some network drives).
/usr/bin/cronlog can be edited to suit particular needs.

A mailer can be installed as well. The mailer configuration script,
exim-config or ssmtp-config, will then offer to point /usr/sbin/sendmail
appropriately.

More information can be found in /usr/share/doc/Cygwin/cron-4.1-1.README

Please direct all comments and questions to the cygwin list, mentioning 
cron in the Subject: line.

Pierre


*

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** 
  
If you want to unsubscribe from the cygwin-announce mailing list, please
use the automated form at:

http://cygwin.com/lists.html#subscribe-unsubscribe
  
If this does not work, then 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]
 
If you need more information on unsubscribing, start reading here:
 
http://sourceware.org/lists.html#unsubscribe-simple
 
Please read *all* of the information on unsubscribing that is available
starting at this URL and you WILL be able to unsubscribe.
 
*


--
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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Andrew Louie

On 4/11/07, Pierre A. Humblet  wrote:

I have updated cron to version 4.1




If /usr/sbin/sendmail does not point to a mailer, the cron postinstall script
links it to the (new) script /usr/bin/cronlog.



Thanks! It took me a week to figure out how to set up up cron
correctly! first you had to learn how to setup logging correctly just
for the chance that you might catch some kind of useful error message,
then you had to setup an e-mailer correctly, and if you didn't cron
wouldn't tell you that, it would just stop the command after some
random amount of time has passed. >_<



/usr/bin/cronlog is a "poor man's mailer" that writes cron output (if any)
to HOME/cron.log.  HOME can be superseded in the crontab file.
The temporary output of /usr/bin/cronlog is written to /tmp/cron.XXX.log and
/tmp/cron.XXX.log.err. These files are deleted if all goes well but can
provide useful debugging information if HOME/cron.log cannot be written
(e.g. on some network drives).
/usr/bin/cronlog can be edited to suit particular needs.


but, can't we put all the logs in the same place like /var/log by default?
You probably have a good reason to stick it in HOME, I just thought
I'd put the question out there.

--
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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Pierre A. Humblet

- Original Message - 
From: "Andrew Louie" 
To: 
Sent: Wednesday, April 11, 2007 8:41 AM
Subject: Re: [ANNOUNCEMENT] Updated: cron 4.1-1


| >
| > /usr/bin/cronlog is a "poor man's mailer" that writes cron output (if any)
| > to HOME/cron.log.  HOME can be superseded in the crontab file.
| > The temporary output of /usr/bin/cronlog is written to /tmp/cron.XXX.log and
| > /tmp/cron.XXX.log.err. These files are deleted if all goes well but can
| > provide useful debugging information if HOME/cron.log cannot be written
| > (e.g. on some network drives).
| > /usr/bin/cronlog can be edited to suit particular needs.
| >
| but, can't we put all the logs in the same place like /var/log by default?
| You probably have a good reason to stick it in HOME, I just thought
| I'd put the question out there.

I thought HOME was more likely to be writable by a random user.
For now I would like to keep it that way and accumulate some feedback.
It's also easy to customize. For example currently cronlog only saves the last
output, some people may want to save everything. To make it more flexible
there could be environment variables in the crontab to tell cronlog what to
save and where to save it. But I prefer to start simple.

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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Michael Schaap

On 11-Apr-2007 12:49, Pierre A. Humblet wrote:

If /usr/sbin/sendmail does not point to a mailer, the cron postinstall script
links it to the (new) script /usr/bin/cronlog.
  


Isn't this a bit aggressive? Cron isn't the only one who might be using 
sendmail, you know...
Might it not be better if crond would be made smart enough to run 
/usr/bin/cronlog in case /usr/sbin/sendmail doesn't exist?


Aside from that, the cron postinstall just removed my existing sendmail 
symlink (to ssmtp), leaving me without one.

Your code does:

# Link sendmail to a poor man's mailer if sendmail
# does not exist (e.g. dangling symlink)
# Handle the .exe mess
[ -e /usr/sbin/sendmail -o -e /usr/sbin/sendmail.exe ] ||
ln -sf /usr/bin/cronlog /usr/sbin/sendmail
[ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe

which is broken in the case of an existing symlink 
/usr/sbin/sendmail.exe -> /usr/sbin/ssmtp.exe (as created by current 
versions of ssmtp-config and ln).


– Michael

--
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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Pierre A. Humblet

- Original Message - 
From: "Michael Schaap"
To: 
Sent: Wednesday, April 11, 2007 10:03 AM
Subject: Re: [ANNOUNCEMENT] Updated: cron 4.1-1


| On 11-Apr-2007 12:49, Pierre A. Humblet wrote:
| > If /usr/sbin/sendmail does not point to a mailer, the cron postinstall 
script
| > links it to the (new) script /usr/bin/cronlog.
| >
|
| Isn't this a bit aggressive? Cron isn't the only one who might be using
| sendmail, you know...
| Might it not be better if crond would be made smart enough to run
| /usr/bin/cronlog in case /usr/sbin/sendmail doesn't exist?
|
| Aside from that, the cron postinstall just removed my existing sendmail
| symlink (to ssmtp), leaving me without one.
| Your code does:
|
| # Link sendmail to a poor man's mailer if sendmail
| # does not exist (e.g. dangling symlink)
| # Handle the .exe mess
| [ -e /usr/sbin/sendmail -o -e /usr/sbin/sendmail.exe ] ||
| ln -sf /usr/bin/cronlog /usr/sbin/sendmail
| [ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe
|
| which is broken in the case of an existing symlink
| /usr/sbin/sendmail.exe -> /usr/sbin/ssmtp.exe (as created by current
| versions of ssmtp-config and ln).
|
| – Michael

Sorry, I thought I had tested that and I don't see why it happened.
Exactly what did you observe?
If you had either /usr/sbin/sendmail  or /usr/sbin/sendmail.exe pointing
to an existing file, then "ln -sf /usr/bin/cronlog " should not have run.
If you had both /usr/sbin/sendmail  already pointing to a file and 
/usr/sbin/senmail.exe
existed (not necessarily pointing to anything) , which guarantees confusion,
then the second one was removed. That's a little aggressive, I should make
it conditional on cronlog being newly linked.

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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Michael Schaap

On 11-Apr-2007 16:15, Pierre A. Humblet wrote:
- Original Message - 
From: "Michael Schaap"

To: 
Sent: Wednesday, April 11, 2007 10:03 AM
Subject: Re: [ANNOUNCEMENT] Updated: cron 4.1-1


| On 11-Apr-2007 12:49, Pierre A. Humblet wrote:
| > If /usr/sbin/sendmail does not point to a mailer, the cron postinstall 
script
| > links it to the (new) script /usr/bin/cronlog.
| >
|
| Isn't this a bit aggressive? Cron isn't the only one who might be using
| sendmail, you know...
| Might it not be better if crond would be made smart enough to run
| /usr/bin/cronlog in case /usr/sbin/sendmail doesn't exist?
|
| Aside from that, the cron postinstall just removed my existing sendmail
| symlink (to ssmtp), leaving me without one.
| Your code does:
|
| # Link sendmail to a poor man's mailer if sendmail
| # does not exist (e.g. dangling symlink)
| # Handle the .exe mess
| [ -e /usr/sbin/sendmail -o -e /usr/sbin/sendmail.exe ] ||
| ln -sf /usr/bin/cronlog /usr/sbin/sendmail
| [ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe
|
| which is broken in the case of an existing symlink
| /usr/sbin/sendmail.exe -> /usr/sbin/ssmtp.exe (as created by current
| versions of ssmtp-config and ln).
|
| – Michael

Sorry, I thought I had tested that and I don't see why it happened.
Exactly what did you observe?
If you had either /usr/sbin/sendmail  or /usr/sbin/sendmail.exe pointing
to an existing file, then "ln -sf /usr/bin/cronlog " should not have run.
If you had both /usr/sbin/sendmail  already pointing to a file and 
/usr/sbin/senmail.exe
existed (not necessarily pointing to anything) , which guarantees confusion,
then the second one was removed. That's a little aggressive, I should make
it conditional on cronlog being newly linked.
  
"[ -e /usr/sbin/sendmail ]" is true when a symlink 
"/usr/sbin/sendmail.exe" exists.


If you have to do this by symlinking sendmail (which I still don't like, 
but that's just me), can't you move the creation to cron-config, so you 
can ask the user for permission before you do it?


- Michael

--
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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Pierre A. Humblet

- Original Message - 
From: "Michael Schaap"
To: 
Sent: Wednesday, April 11, 2007 10:21 AM
Subject: Re: [ANNOUNCEMENT] Updated: cron 4.1-1


| On 11-Apr-2007 16:15, Pierre A. Humblet wrote:
| > - Original Message - 
| > From: "Michael Schaap"
| > To: 
| > Sent: Wednesday, April 11, 2007 10:03 AM
| > Subject: Re: [ANNOUNCEMENT] Updated: cron 4.1-1
| >
| >
| > | On 11-Apr-2007 12:49, Pierre A. Humblet wrote:
| > | > If /usr/sbin/sendmail does not point to a mailer, the cron postinstall 
script
| > | > links it to the (new) script /usr/bin/cronlog.
| > | >
| > |
| > | Isn't this a bit aggressive? Cron isn't the only one who might be using
| > | sendmail, you know...
| > | Might it not be better if crond would be made smart enough to run
| > | /usr/bin/cronlog in case /usr/sbin/sendmail doesn't exist?
| > |
| > | Aside from that, the cron postinstall just removed my existing sendmail
| > | symlink (to ssmtp), leaving me without one.
| > | Your code does:
| > |
| > | # Link sendmail to a poor man's mailer if sendmail
| > | # does not exist (e.g. dangling symlink)
| > | # Handle the .exe mess
| > | [ -e /usr/sbin/sendmail -o -e /usr/sbin/sendmail.exe ] ||
| > | ln -sf /usr/bin/cronlog /usr/sbin/sendmail
| > | [ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe
| > |
| > | which is broken in the case of an existing symlink
| > | /usr/sbin/sendmail.exe -> /usr/sbin/ssmtp.exe (as created by current
| > | versions of ssmtp-config and ln).
| > |
| > | – Michael
| >
| > Sorry, I thought I had tested that and I don't see why it happened.
| > Exactly what did you observe?
| > If you had either /usr/sbin/sendmail  or /usr/sbin/sendmail.exe pointing
| > to an existing file, then "ln -sf /usr/bin/cronlog " should not have run.
| > If you had both /usr/sbin/sendmail  already pointing to a file and 
/usr/sbin/senmail.exe
| > existed (not necessarily pointing to anything) , which guarantees confusion,
| > then the second one was removed. That's a little aggressive, I should make
| > it conditional on cronlog being newly linked.
| >
| "[ -e /usr/sbin/sendmail ]" is true when a symlink
| "/usr/sbin/sendmail.exe" exists.

Precisely if "[ -e /usr/sbin/sendmail ]"  is true then
 || ln -sf /usr/bin/cronlog /usr/sbin/sendmail
shouldn't run.
I just tested that again on my system..

| If you have to do this by symlinking sendmail (which I still don't like,
| but that's just me), can't you move the creation to cron-config, so you
| can ask the user for permission before you do it?

Yes, but there are always those that do it by hand and then complain.
I absolutely want to avoid disturbing existing installations, so understanding
exactly what happened would help.

 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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Michael Schaap

On 11-Apr-2007 16:30, Pierre A. Humblet wrote:

| "[ -e /usr/sbin/sendmail ]" is true when a symlink
| "/usr/sbin/sendmail.exe" exists.

Precisely if "[ -e /usr/sbin/sendmail ]"  is true then
 || ln -sf /usr/bin/cronlog /usr/sbin/sendmail
shouldn't run.
  

Indeed it doesn't.  But then:

[ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe

does run.

– Michael

(I can't stand that syntax, by the way.  It's so much easier to see 
what's going on when you use a proper "if"...)


--
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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Pierre A. Humblet

- Original Message - 
From: "Michael Schaap"
To: 
Sent: Wednesday, April 11, 2007 10:42 AM
Subject: ***[Possible UCE]*** Re: [ANNOUNCEMENT] Updated: cron 4.1-1


| On 11-Apr-2007 16:30, Pierre A. Humblet wrote:
| > | "[ -e /usr/sbin/sendmail ]" is true when a symlink
| > | "/usr/sbin/sendmail.exe" exists.
| >
| > Precisely if "[ -e /usr/sbin/sendmail ]"  is true then
| >  || ln -sf /usr/bin/cronlog /usr/sbin/sendmail
| > shouldn't run.
| >
| Indeed it doesn't.  But then:
|
| [ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe
|
| does run.
|
| – Michael
|
| (I can't stand that syntax, by the way.  It's so much easier to see
| what's going on when you use a proper "if"...)

Except if that if /usr/sbin/sendmail.exe did exist in the first place
(not a dangling link) then cronlog would not have been linked,
for the same reason:
 [ -e /usr/sbin/sendmail -o -e /usr/sbin/sendmail.exe  ]

and thus the rm -f would not do anything except possibly remove
a dangling symlink. I still don't understand what happened.

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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Michael Schaap

On 11-Apr-2007 16:30, Pierre A. Humblet wrote:

| If you have to do this by symlinking sendmail (which I still don't like,
| but that's just me), can't you move the creation to cron-config, so you
| can ask the user for permission before you do it?

Yes, but there are always those that do it by hand and then complain.
  
Yeah, but it they ignore the excellent installation and diagnostics 
scripts included in your package, they've deserved all the abuse they're 
going to get on this list, no?  :-)



I absolutely want to avoid disturbing existing installations, so understanding
exactly what happened would help.
  
But even when this bug is fixed, simply installing cron will silently 
create a somewhat dysfunctional sendmail, on machines where ssmtp or 
exim isn't installed or configured.
This means that if another program tries to use sendmail, it will seem 
to work and there won't be any error message.


It would be best, IMHO, if you didn't create symlink at all, to a 
sendmail that can't send mail, but if you have to, it should at least be 
done after warning the user very loudly.


– Michael

--
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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Michael Schaap

On 11-Apr-2007 16:51, Pierre A. Humblet wrote:
- Original Message - 
From: "Michael Schaap"

To: 
Sent: Wednesday, April 11, 2007 10:42 AM
Subject: ***[Possible UCE]*** Re: [ANNOUNCEMENT] Updated: cron 4.1-1


| On 11-Apr-2007 16:30, Pierre A. Humblet wrote:
| > | "[ -e /usr/sbin/sendmail ]" is true when a symlink
| > | "/usr/sbin/sendmail.exe" exists.
| >
| > Precisely if "[ -e /usr/sbin/sendmail ]"  is true then
| >  || ln -sf /usr/bin/cronlog /usr/sbin/sendmail
| > shouldn't run.
| >
| Indeed it doesn't.  But then:
|
| [ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe
|
| does run.
|
| – Michael
|
| (I can't stand that syntax, by the way.  It's so much easier to see
| what's going on when you use a proper "if"...)

Except if that if /usr/sbin/sendmail.exe did exist in the first place
(not a dangling link) then cronlog would not have been linked,
for the same reason:
 [ -e /usr/sbin/sendmail -o -e /usr/sbin/sendmail.exe  ]

and thus the rm -f would not do anything except possibly remove
a dangling symlink. I still don't understand what happened.

  

Okay, I have a symlink

   sendmail.exe -> /usr/sbin/ssmtp.exe

The following code:

   [ -e /usr/sbin/sendmail -o -e /usr/sbin/sendmail.exe  ] ||
 ln -sf /usr/bin/cronlog /usr/sbin/sendmail

does nothing, since "-e /usr/sbin/sendmail.exe" is true.

Then this code runs:

   [ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe

and *does* "rm -f /usr/sbin/sendmail.exe", since "-e 
/usr/sbin/sendmail.exe" is (still) true.



I'd just rewrite this as a proper "if".  Much easier to read and maintain.
(I don't really see what you're trying to do with that last statement 
anyway.  In which situation is it supposed to do something useful?)


– Michael

--
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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Pierre A. Humblet

- Original Message - 
From: "Michael Schaap" <>
To: 
Sent: Wednesday, April 11, 2007 10:42 AM
Subject: ***[Possible UCE]*** Re: [ANNOUNCEMENT] Updated: cron 4.1-1


| On 11-Apr-2007 16:30, Pierre A. Humblet wrote:
| > | "[ -e /usr/sbin/sendmail ]" is true when a symlink
| > | "/usr/sbin/sendmail.exe" exists.
| >
| > Precisely if "[ -e /usr/sbin/sendmail ]"  is true then
| >  || ln -sf /usr/bin/cronlog /usr/sbin/sendmail
| > shouldn't run.
| >   
| Indeed it doesn't.  But then:
| 
| [ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe
| 
| does run.

OK, I see what's happening.
 [ -e /usr/sbin/sendmail ]  as well as [ -L /usr/sbin/sendmail ] are true
when sendmail does not exist while sendmail.exe does.
I need a much more elaborate test to detect when both exist.
Thanks for the report.

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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Michael Schaap

On 11-Apr-2007 17:08, Michael Schaap wrote:

On 11-Apr-2007 16:51, Pierre A. Humblet wrote:

- Original Message - From: "Michael Schaap"
To: 
Sent: Wednesday, April 11, 2007 10:42 AM
Subject: ***[Possible UCE]*** Re: [ANNOUNCEMENT] Updated: cron 4.1-1


| On 11-Apr-2007 16:30, Pierre A. Humblet wrote:
| > | "[ -e /usr/sbin/sendmail ]" is true when a symlink
| > | "/usr/sbin/sendmail.exe" exists.
| >
| > Precisely if "[ -e /usr/sbin/sendmail ]"  is true then
| >  || ln -sf /usr/bin/cronlog /usr/sbin/sendmail
| > shouldn't run.
| >
| Indeed it doesn't.  But then:
|
| [ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe
|
| does run.
|
| – Michael
|
| (I can't stand that syntax, by the way.  It's so much easier to see
| what's going on when you use a proper "if"...)

Except if that if /usr/sbin/sendmail.exe did exist in the first place
(not a dangling link) then cronlog would not have been linked,
for the same reason:
 [ -e /usr/sbin/sendmail -o -e /usr/sbin/sendmail.exe  ]

and thus the rm -f would not do anything except possibly remove
a dangling symlink. I still don't understand what happened.

  

Okay, I have a symlink

   sendmail.exe -> /usr/sbin/ssmtp.exe

The following code:

   [ -e /usr/sbin/sendmail -o -e /usr/sbin/sendmail.exe  ] ||
 ln -sf /usr/bin/cronlog /usr/sbin/sendmail

does nothing, since "-e /usr/sbin/sendmail.exe" is true.

Then this code runs:

   [ -e /usr/sbin/sendmail ] && rm -f /usr/sbin/sendmail.exe

and *does* "rm -f /usr/sbin/sendmail.exe", since "-e 
/usr/sbin/sendmail.exe" is (still) true.

Make that: ..., since "-e /usr/sbin/sendmail" is true.



I'd just rewrite this as a proper "if".  Much easier to read and 
maintain.
(I don't really see what you're trying to do with that last statement 
anyway.  In which situation is it supposed to do something useful?)


– Michael

--
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: [ANNOUNCEMENT] Updated: cron 4.1-1

2007-04-11 Thread Eric Blake
Pierre A. Humblet  ieee.org> writes:

> 
> OK, I see what's happening.
>  [ -e /usr/sbin/sendmail ]  as well as [ -L /usr/sbin/sendmail ] are true
> when sendmail does not exist while sendmail.exe does.
> I need a much more elaborate test to detect when both exist.

Or, you can wait for me to release coreutils 6.9-1, where 'ln -sf' will take 
care of the broken sendmail.exe link at the same time as creating the working 
plain sendmail link.

But FWIW, I agree with the sentiment that your postinstall script should NOT be 
touching sendmail; you should be saving that for cron-config.

-- 
Eric Blake



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



Copy and paste shortcut

2007-04-11 Thread Buff Miner
To whom it may concern,

I read the following ad it all works;

More precisely:
Start up bash by doing Start -> Programs -> Cygwin -> Cygwin Bash\ Shell.
Right click on the icon in the upper left of the title bar and select
properties
Under Options, select 'QuickEdit Mode', hit ok
Select 'Modify shortcut that started this window', hit ok
To copy from a Cygwin Bash window, highlight the text by left clicking and
dragging the mouse, then hit the enter key to copy the text.

To paste into a Cygwin Bash window, click on the icon in the upper left of
the window menu bar and then do edit -> paste or do Alt-Space e p That is,
hold down the Alt key, hit the space bar, let up on the Alt key, type an e
and then a p.

My question is, "Is there a way to create a shortcut for Alt-space, e, then
p?" Can this be with fewer key strokes?

Thanks in advance!

Buff


--
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: Copy and paste shortcut

2007-04-11 Thread Igor Peshansky
On Wed, 11 Apr 2007, Buff Miner wrote:

> To whom it may concern,
>
> I read the following ad it all works;
>
> More precisely:
> Start up bash by doing Start -> Programs -> Cygwin -> Cygwin Bash\ Shell.
> Right click on the icon in the upper left of the title bar and select
> properties
> Under Options, select 'QuickEdit Mode', hit ok
> Select 'Modify shortcut that started this window', hit ok
> To copy from a Cygwin Bash window, highlight the text by left clicking and
> dragging the mouse, then hit the enter key to copy the text.
>
> To paste into a Cygwin Bash window, click on the icon in the upper left of
> the window menu bar and then do edit -> paste or do Alt-Space e p That is,
> hold down the Alt key, hit the space bar, let up on the Alt key, type an e
> and then a p.
>
> My question is, "Is there a way to create a shortcut for Alt-space, e, then
> p?" Can this be with fewer key strokes?

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

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
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: Copy and paste shortcut

2007-04-11 Thread Dave Korn
On 11 April 2007 17:14, Buff Miner wrote:

> My question is, "Is there a way to create a shortcut for Alt-space, e, then
> p?" 

  Just modify the accelerator keys in the resource file for cmd.exe and
recompile Windows from source.

  Oh, hang on .  :-)

> Can this be with fewer key strokes?

  A right-mouse-click has the same effect but I don't think there's any way to
change the shortcut.  It gets to be very fast with a bit of practice.

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: Copy and paste shortcut

2007-04-11 Thread Adye, TJ \(Tim\)
Buff Miner wrote on 11 April 2007 17:14: 
> 
> More precisely:
> Start up bash by doing Start -> Programs -> Cygwin -> Cygwin 
> Bash\ Shell.
> Right click on the icon in the upper left of the title bar 
> and select properties Under Options, select 'QuickEdit Mode', 
> hit ok Select 'Modify shortcut that started this window', hit 
> ok To copy from a Cygwin Bash window, highlight the text by 
> left clicking and dragging the mouse, then hit the enter key 
> to copy the text.

Or, left-click, drag, and right-click. Saves moving your hand back to
the keyboard.

> To paste into a Cygwin Bash window, click on the icon in the 
> upper left of the window menu bar and then do edit -> paste 
> or do Alt-Space e p That is, hold down the Alt key, hit the 
> space bar, let up on the Alt key, type an e and then a p.
> 
> My question is, "Is there a way to create a shortcut for 
> Alt-space, e, then p?" Can this be with fewer key strokes?

Maybe I misunderstood what you are asking, but if you have 'QuickEdit
Mode' mode enabled, then you can paste into the Cygwin Bash window by
clicking with the right mouse button. It's not a keyboard shortcut, but
it is quick and easy!

Tim.

===  cut here  
 Tim Adye  [EMAIL PROTECTED]   http://hepunx.rl.ac.uk/~adye
 BaBar/Atlas Groups, Particle Physics Dept, Rutherford Appleton Lab

--
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: Copy and paste shortcut

2007-04-11 Thread Buff Miner
Igor,

Thanks!

Buff


On 4/11/07 1:09 PM, "Igor Peshansky" <[EMAIL PROTECTED]> wrote:

> On Wed, 11 Apr 2007, Buff Miner wrote:
> 
>> To whom it may concern,
>> 
>> I read the following ad it all works;
>> 
>> More precisely:
>> Start up bash by doing Start -> Programs -> Cygwin -> Cygwin Bash\ Shell.
>> Right click on the icon in the upper left of the title bar and select
>> properties
>> Under Options, select 'QuickEdit Mode', hit ok
>> Select 'Modify shortcut that started this window', hit ok
>> To copy from a Cygwin Bash window, highlight the text by left clicking and
>> dragging the mouse, then hit the enter key to copy the text.
>> 
>> To paste into a Cygwin Bash window, click on the icon in the upper left of
>> the window menu bar and then do edit -> paste or do Alt-Space e p That is,
>> hold down the Alt key, hit the space bar, let up on the Alt key, type an e
>> and then a p.
>> 
>> My question is, "Is there a way to create a shortcut for Alt-space, e, then
>> p?" Can this be with fewer key strokes?
> 
> Right-click.
> Igor


--
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.24-2: libusb-win32

2007-04-11 Thread Maurits Kooiman
Dear Reader,

I used your libusb-win32 (the testlibusb worked).
mine linker couldn’t find the usb functions. 

Do you have any idea where to look?

Regards 
Maurits Kooiman

Result of the make-file:


make -k all 
Building file: ../main.cpp
Invoking: GCC C++ Compiler
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d"
-o"main.o" "../main.cpp"
Finished building: ../main.cpp
 
Building target: NXTinterface.exe
Invoking: GCC C++ Linker
g++  -o"NXTinterface.exe"  ./main.o   
./main.o:main.cpp:(.text+0xe1): undefined reference to `_usb_init'
./main.o:main.cpp:(.text+0xe6): undefined reference to `_usb_find_busses'
./main.o:main.cpp:(.text+0xeb): undefined reference to `_usb_find_devices'
./main.o:main.cpp:(.text+0xf0): undefined reference to `_usb_get_busses'
./main.o:main.cpp:(.text+0xf5): undefined reference to `_usb_get_busses'
collect2: ld returned 1 exit status
make: *** [NXTinterface.exe] Error 1
make: Target `all' not remade because of errors.
Build complete for project NXTinterface





--
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.24-2: libusb-win32

2007-04-11 Thread Maurits Kooiman
Dear Reader,

I used your libusb-win32 (the testlibusb worked).
mine linker couldn’t find the usb functions. 

Do you have any idea where to look?

Regards
Maurits Kooiman

Result of the make-file:


make -k all
Building file: ../main.cpp
Invoking: GCC C++ Compiler
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d"
-o"main.o" "../main.cpp"
Finished building: ../main.cpp
 
Building target: NXTinterface.exe
Invoking: GCC C++ Linker
g++  -o"NXTinterface.exe"  ./main.o
./main.o:main.cpp:(.text+0xe1): undefined reference to `_usb_init'
./main.o:main.cpp:(.text+0xe6): undefined reference to `_usb_find_busses'
./main.o:main.cpp:(.text+0xeb): undefined reference to `_usb_find_devices'
./main.o:main.cpp:(.text+0xf0): undefined reference to `_usb_get_busses'
./main.o:main.cpp:(.text+0xf5): undefined reference to `_usb_get_busses'
collect2: ld returned 1 exit status
make: *** [NXTinterface.exe] Error 1
make: Target `all' not remade because of errors.
Build complete for project NXTinterface





--
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: 1.5.24-2: libusb-win32

2007-04-11 Thread Brian Dessent
Maurits Kooiman wrote:

> I used your libusb-win32 (the testlibusb worked).
> mine linker couldn’t find the usb functions.
> 
> Do you have any idea where to look?
> 
> Regards
> Maurits Kooiman
> 
> Result of the make-file:
> 
> make -k all
> Building file: ../main.cpp
> Invoking: GCC C++ Compiler
> g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d"
> -o"main.o" "../main.cpp"
> Finished building: ../main.cpp
>  
> Building target: NXTinterface.exe
> Invoking: GCC C++ Linker
> g++  -o"NXTinterface.exe"  ./main.o
> ./main.o:main.cpp:(.text+0xe1): undefined reference to `_usb_init'
> ./main.o:main.cpp:(.text+0xe6): undefined reference to `_usb_find_busses'
> ./main.o:main.cpp:(.text+0xeb): undefined reference to `_usb_find_devices'
> ./main.o:main.cpp:(.text+0xf0): undefined reference to `_usb_get_busses'
> ./main.o:main.cpp:(.text+0xf5): undefined reference to `_usb_get_busses'
> collect2: ld returned 1 exit status

How do you expect this to ever work?  You're not telling to link against
the library.  It's not a mind reader, you need to give it -lusb.

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/



bash: tar: command not found

2007-04-11 Thread Cheney, Christian
I have installed cygwin on Windows XP using the default setup.  When I
try to use tar, I am getting "bash: tar: command not found."  If I try
to reinstall tar using the setup utility, it copies some files, but then
gives a "no package" note, and tar still won't work in cygwin.  Any
ideas how to fix this?  Thank you.

--
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 svn client and tortoise svn

2007-04-11 Thread teggy p v
Hi there,
 
I have a svn repository on my pc (the repository has been created under
cygwin) and I am able to perform whatever svn operation when using the
cygwin svn client e.g.
$ svn status
$ svn update
etc.
 
On top of that, I've installed tortoisesvn for windows xp and for those
directories which are svn workspaces (I am referring to the user folders
after a checkout has been done and not the directories in the actual svn
repository), tortoisesvn identifies these directories as user workspaces and
provides the svn context menu for those. These context menus allow to
perform SVN update, SVN Commit, etc.
 
Now the issue I am having is that when I try to run SVN update from
Tortoisesvn context menu, I get the following error message:
 
ErrorUnable to open an ra_local session to URL
ErrorUnable to open repository
'file:///cygdrive/c/home/arcrep/trunk/samples'
 
Any idea why I am getting this issue ? Are the entries in the .svn sub
directory not in the correct format for tortoisesvn to use (these entries
were initially created by cygwin client svn since the initial checkout was
done with cygwin client svn) ?
 
Many thanks,
Teggy


--
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 svn client and tortoise svn

2007-04-11 Thread Jared Silva

svn switch --help

Use "C:\home\arcrep\trunk\samples" instead of
"/cygdrive/c/home/arcrep/trunk/samples".

--
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: bash: tar: command not found

2007-04-11 Thread Christopher Faylor
On Wed, Apr 11, 2007 at 01:57:33PM -0700, Cheney, Christian wrote:
>I have installed cygwin on Windows XP using the default setup.  When I
>try to use tar, I am getting "bash: tar: command not found."  If I try
>to reinstall tar using the setup utility, it copies some files, but then
>gives a "no package" note, and tar still won't work in cygwin.  Any
>ideas how to fix this?  Thank you.

The details mentioned here would probably help:
 VV
>Problem reports:   http://cygwin.com/problems.html

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: cygwin svn client and tortoise svn

2007-04-11 Thread Jared Silva

svn switch --relocate file:///cygdrive/c/home/arcrep/trunk/samples
file:///C:\home\arcrep\trunk\samples .

--
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: bash: tar: command not found

2007-04-11 Thread Cheney, Christian
Please expound.  Been there, done that.  Hence, the post.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Christopher Faylor
Sent: Wednesday, April 11, 2007 2:36 PM
To: cygwin@cygwin.com
Subject: Re: bash: tar: command not found

On Wed, Apr 11, 2007 at 01:57:33PM -0700, Cheney, Christian wrote:
>I have installed cygwin on Windows XP using the default setup.  When I
>try to use tar, I am getting "bash: tar: command not found."  If I try
>to reinstall tar using the setup utility, it copies some files, but
then
>gives a "no package" note, and tar still won't work in cygwin.  Any
>ideas how to fix this?  Thank you.

The details mentioned here would probably help:
 VV
>Problem reports:   http://cygwin.com/problems.html

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/


--
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: /etc/bash_completion & svn/svk completion

2007-04-11 Thread Jared Silva

_svn* are out of date in /etc/bash_completion.  My recommendation is
to remove _svn* from /etc/bash_completion to
/etc/bash_completion.d/svn (similar to /etc/bash_completion.d/svk).
This way, the default bash completion is unchanged.  However, if
someone wants to use the latest bash completion for svn (e.g.
/usr/src/subversion/tools/client-side/bash_completion) they only need
to replace the svn file with a symbolic link.  With this method, _svn*
is only sourced once, versus twice.

--
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: bash: tar: command not found

2007-04-11 Thread Matthew Woehlke

Cheney, Christian wrote:

learn.to/quote <-- please do (no TOFU*, in particular)

And PCYMTNQREAIYR* while you are at it.

(*http://cygwin.com/acronyms)


Christopher Faylor wrote:
On Wed, Apr 11, 2007 at 01:57:33PM -0700, Cheney, Christian wrote:

I have installed cygwin on Windows XP using the default setup.  When I
try to use tar, I am getting "bash: tar: command not found."  If I try
to reinstall tar using the setup utility, it copies some files, but

then

gives a "no package" note, and tar still won't work in cygwin.  Any
ideas how to fix this?  Thank you.


The details mentioned here would probably help:
 VV

Problem reports:   http://cygwin.com/problems.html


Please expound.  Been there, done that.  Hence, the post.


I didn't see cygcheck output attached to your previous post. Therefore, 
you either did not follow the instructions, or your mailer is broken.


--
Matthew
Not to be used as a flotation device.


--
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: bash: tar: command not found

2007-04-11 Thread Cheney, Christian
>>I didn't see cygcheck output attached to your previous post.
Therefore, 
>>you either did not follow the instructions, or your mailer is broken.

My bad :0)



cygcheck.out
Description: cygcheck.out
--
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: bash: tar: command not found

2007-04-11 Thread Larry Hall (Cygwin)

Cheney, Christian wrote:

I didn't see cygcheck output attached to your previous post.
Therefore, 

you either did not follow the instructions, or your mailer is broken.


My bad :0)


OK, 'tar' is installed.  Given your description of the problem and your
subsequent problems with reinstalling, I'm guessing that 'setup.exe'
didn't finish doing its work.  Look in '/etc/postinstall' and see
if there are any scripts there that don't end in ".done".  Also, check
'/var/log/setup.log.full' for any messages that would indicate the
problem.  In the worst case, you can try running each of the scripts
in '/etc/postinstall' manually.

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: bash: tar: command not found

2007-04-11 Thread Cheney, Christian
>>Look in '/etc/postinstall' and see if there are any scripts there 
>>that don't end in ".done".
There are none

>>Also, check '/var/log/setup.log.full' for any messages that would 
>>indicate the problem.
I can't see anything.  Take a look.

>>In the worst case, you can try running each of the scripts
>>in '/etc/postinstall' manually.

$ bash -rcfile tar.sh.done
install-info: menu item `tar' already exists, for file `tar'
install-info: menu item `tar' already exists, for file `tar'

[EMAIL PROTECTED] /cygdrive/c/cygwin/etc/postinstall
$ tar
bash: tar: command not found

Interestingly enough, I went to the installation file to check to see if
I could manually unzip tar.exe to the /bin directory.  After running
bunzip2 on the tar-1.16.1-1.tar.bz2, I opened the resulting
tar-1.16-1.tar file in winzip.  I tried to extract the tar.exe file, and
it gave me a "Cannot copy file: Cannot read from the source file or
disk" error.  This is in contrast to what happens when I manually
extract the rmt.exe file, which gives me no error.  I can send you the 2
MB file if you want.


setup.log.full
Description: setup.log.full
--
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: bash: tar: command not found

2007-04-11 Thread Larry Hall (Cygwin)

Cheney, Christian wrote:
Look in '/etc/postinstall' and see if there are any scripts there 
that don't end in ".done".

There are none

Also, check '/var/log/setup.log.full' for any messages that would 
indicate the problem.

I can't see anything.  Take a look.


In the worst case, you can try running each of the scripts
in '/etc/postinstall' manually.


$ bash -rcfile tar.sh.done
install-info: menu item `tar' already exists, for file `tar'
install-info: menu item `tar' already exists, for file `tar'

[EMAIL PROTECTED] /cygdrive/c/cygwin/etc/postinstall
$ tar
bash: tar: command not found

Interestingly enough, I went to the installation file to check to see if
I could manually unzip tar.exe to the /bin directory.  After running
bunzip2 on the tar-1.16.1-1.tar.bz2, I opened the resulting
tar-1.16-1.tar file in winzip.  I tried to extract the tar.exe file, and
it gave me a "Cannot copy file: Cannot read from the source file or
disk" error.  This is in contrast to what happens when I manually
extract the rmt.exe file, which gives me no error.  I can send you the 2
MB file if you want.



Don't extract things using non-Cygwin tools unless you really know what
you're doing (or have been told to do so).  You can make a real mess doing
this.

If you're saying by the above that you have c:\cygwin\bin\bunzip2.exe
and can run it from the shell the same way as you are attempting to run
'tar', then I would say that you have a bad tar package.  Try installing
it from a different mirror and see if that helps.

FWIW, 'setup.exe' reports 'tar-1.16.1-1.tar.bz2' as a 696K file.

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: bash: tar: command not found

2007-04-11 Thread Christopher Faylor
On Wed, Apr 11, 2007 at 05:25:08PM -0700, Cheney, Christian wrote:
>>>Look in '/etc/postinstall' and see if there are any scripts there 
>>>that don't end in ".done".
>There are none
>
>>>Also, check '/var/log/setup.log.full' for any messages that would 
>>>indicate the problem.
>I can't see anything.  Take a look.
>
>>>In the worst case, you can try running each of the scripts
>>>in '/etc/postinstall' manually.
>
>$ bash -rcfile tar.sh.done
>install-info: menu item `tar' already exists, for file `tar'
>install-info: menu item `tar' already exists, for file `tar'
>
>[EMAIL PROTECTED] /cygdrive/c/cygwin/etc/postinstall
>$ tar
>bash: tar: command not found

How about running /usr/bin/tar?  Sounds like you just don't have the
PATH set up correctly?

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: Copy and paste shortcut

2007-04-11 Thread oleyk
hi

BM> My question is, "Is there a way to create a shortcut for Alt-space, e, then
BM> p?" Can this be with fewer key strokes?

BM> Thanks in advance!

$ echo "\"\\e[2~\" paste-from-clipboard # bind the insert key to paste from the 
clipboard" >> ~/.inputrc



-- 
 oleyk


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



problem with setuid

2007-04-11 Thread Felipe Alcacibar

hello..
i'm trying tu run a process with low privileges, (mysql) server, with
a mysql user, but this cannot be change, i'm using the Administrator
account as root. and i create a mysql user into de windows users and
expoted it to the passwd table.

a synopsis of this

[code]
svr ~ # cat /etc/passwd
SYSTEM:*:18:544:,S-1-5-18::
portage:*:250:250:,S-1-5-21-527237240-484763869-1202660629-1015:/usr/portae:/bin/false
apache:*:81:81:,S-1-5-21-527237240-484763869-1202660629-1019:/var/www:/bin/nologin
mysql:*:60:60:U-SVR\mysql,S-1-5-21-527237240-484763869-1202660629-1021:/var/lib/mysql:/bin/nologin
root:unused_by_nt/2000/xp:0:0:U-SVR\Administrador,S-1-5-21-527237240-484763869-1202660629-500:/home/Administrador:/bin/bash
Invitado:unused_by_nt/2000/xp:501:513:U-SVR\Invitado,S-1-5-21-527237240-484763869-1202660629-501:/home/Invitado:/bin/bash
svr ~ #
svr ~ # cat /etc/group
root:S-1-5-32-544:0:
portage:S-1-5-21-527237240-484763869-1202660629-1015:250:root
apache:S-1-5-21-527237240-484763869-1202660629-1019:81:
wheel:S-1-5-18:10:root
SYSTEM:S-1-5-18:18:
Ninguno:S-1-5-21-527237240-484763869-1202660629-513:513:
Administradores:S-1-5-32-544:0:
Duplicadores:S-1-5-32-552:552:
Invitados:S-1-5-32-546:546:
Operadores de configuración de red:S-1-5-32-556:556:
Operadores de copia:S-1-5-32-551:551:
Usuarios:S-1-5-32-545:545:
Usuarios avanzados:S-1-5-32-547:547:
Usuarios de escritorio remoto:S-1-5-32-555:555:
HelpServicesGroup:S-1-5-21-527237240-484763869-1202660629-1001:1001:
aweonao:S-1-5-32-544:500:
utmp:S-1-5-21-527237240-484763869-1202660629-1017:409:
mysql:S-1-5-21-527237240-484763869-1202660629-1021:60:
[/code]

for test, i'm using the following command...

[code]
svr test # start-stop-daemon --start  -c mysql -q -x /usr/bin/yes
start-stop-daemon: Unable to set uid to mysql
svr test #
[/code]

when i made a strace for the procces, this is the result (cutted to
the point of problem)

[code]
 120 2197588 [main] start-stop-daemon 1216 extract_nt_dom_user:
pw_gecos 6B1384 (U-SVR\mysql,S-1-5-
21-527237240-484763869-1202660629-1021)
87233 2284821 [main] start-stop-daemon 1216 initgroups32: 0 =
initgroups (mysql, 60)
  95 2284916 [main] start-stop-daemon 1216 seteuid32: uid: 60
myself->uid: 0 myself->gid: 60
  65 2284981 [main] start-stop-daemon 1216 seteuid32: Found token -1
2802 2287783 [main] start-stop-daemon 1216 seterrno_from_win_error:
/ext/build/netrel/src/cygwin-1.
5.24-2/winsup/cygwin/sec_helper.cc:422 windows error 1300
 125 2287908 [main] start-stop-daemon 1216 geterrno_from_win_error:
unknown windows error 1300, set
ting errno to 13
  50 2287958 [main] start-stop-daemon 1216 __set_errno: void
seterrno_from_win_error(const char*, i
nt, DWORD):310 val 13
  52 2288010 [main] start-stop-daemon 1216 set_privilege: -1 =
set_privilege ((token 6BC) SeCreateT
okenPrivilege, 1)
9221 2297231 [main] start-stop-daemon 1216 seterrno_from_win_error:
/ext/build/netrel/src/cygwin-1.
5.24-2/winsup/cygwin/security.cc:889 windows error 1314
  88 2297319 [main] start-stop-daemon 1216 geterrno_from_win_error:
unknown windows error 1314, set
ting errno to 13
  49 2297368 [main] start-stop-daemon 1216 __set_errno: void
seterrno_from_win_error(const char*, i
nt, DWORD):310 val 13
1002 2298370 [main] start-stop-daemon 1216 create_token: -1 = create_token ()
 149 2298519 [main] start-stop-daemon 1216 seteuid32: create token
failed, try subauthentication.
2872 2301391 [main] start-stop-daemon 1216 seterrno_from_win_error:
/ext/build/netrel/src/cygwin-1.
.
5.24-2 /winsup/cygwin/security.cc:961 windows error 5
1741 2306707 [main] start-stop-daemon 1216 geterrno_from_win_error:
windows error 5 == errno 13
 109 2306816 [main] start-stop-daemon 1216 __set_errno: void
seterrno_from_win_error(const char*, i
nt, DWORD):310 val 13
  81 2306897 [main] start-stop-daemon 1216 setuid32: real: 0, effective: 0
1591 2308488 [main] start-stop-daemon 1216 sig_send: sendsig 0x700,
pid 1216, signal -34, its_me 1
  69 2308557 [main] start-stop-daemon 1216 sig_send: wakeup 0x6C8
3527 2312084 [main] start-stop-daemon 1216 sig_send: Waiting for
pack.wakeup 0x6C8
1793 2313877 [sig] start-stop-daemon 1216 wait_sig: signalling
pack.wakeup 0x6C8
70125 2384002 [main] start-stop-daemon 1216 sig_send: returning 0x0
from sending signal -34
 181 2384183 [main] start-stop-daemon 1216 fhandler_base::write: binary write
start-stop-daemon:   791 2384974 [main] start-stop-daemon 1216
sig_send: sendsig 0x700, pid 1216, si
gnal -34, its_me 1
 365 2385339 [main] start-stop-daemon 1216 sig_send: wakeup 0x6C8
  77 2385416 [main] start-stop-daemon 1216 sig_send: Waiting for
pack.wakeup 0x6C8
 798 2386214 [sig] start-stop-daemon 1216 wait_sig: signalling
pack.wakeup 0x6C8
 676 2386890 [main] start-stop-daemon 1216 sig_send: returning 0x0
from sending signal -34
 722 2387612 [main] start-stop-daemon 1216 fhandler_base::write: binary write
Unable to set uid to mysql  280 2387892 [main] start-stop-daemon 1216
sig_send: sendsig 0x700, pid 1216, signal -34, its_me 1
 486 2388378 [main] start-st

Re: problem with setuid

2007-04-11 Thread Carlo Florendo

Felipe Alcacibar wrote:

hello..
i'm trying tu run a process with low privileges, (mysql) server, with
a mysql user, but this cannot be change, i'm using the Administrator
account as root. and i create a mysql user into de windows users and
expoted it to the passwd table.






[/code]

for test, i'm using the following command...

[code]
svr test # start-stop-daemon --start  -c mysql -q -x /usr/bin/yes
start-stop-daemon: Unable to set uid to mysql


Cygwin handles setuid differently.  See 
http://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid


The easiest way for you to run mysql as a lower-privileged user could be to 
run the runas command.  For example


runas /user:mysql c:\cygwin\bin\bash.exe

Then from the newly spawned shell, try running the mysql command

start-stop-daemon --start  -c mysql -q -x /usr/bin/yes

Best Regards,

Carlo



--
Carlo Florendo
Softare Engineer/Network Co-Administrator
Astra Philippines Inc.
UP-Ayala Technopark, Diliman 1101, Quezon City
Philippines
http://www.astra.ph

--
The Astra Group of Companies
5-3-11 Sekido, Tama City
Tokyo 206-0011, Japan
http://www.astra.co.jp

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