Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 10 Oct 2005 10:29:08 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: [PATCH] Bugs in cron-config: filename case and PATH Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-959030623-1128954548=:9685" ---559023410-959030623-1128954548=:9685 Content-Type: TEXT/PLAIN; charset=US-ASCII /usr/bin/cron-config doesn't work when "case_check:strict" is in effect, as well as not setting the PATH to include /usr/bin. So, the cron service can't find cygwin1.dll, unless $PATH in the global system environment contains 'c:\cygwin\bin'. There are two ways to fix the first problem (which prevents cron-config from accessing the registry via /proc/registry): one is to force relaxed/adjusted case checking in the script (as is done in the attached patch), and the other is to use the proper case for registry access (not sure how much it's standardized, though). As said above, a patch that fixes both issues (for me) is attached. ChangeLog is below. Igor ============================================================================== 2005-10-10 Igor Pechtchanski * cron-config: Add check_case:adjust to $CYGWIN. (install_service): Add /usr/bin to $PATH when installing as service. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA ---559023410-959030623-1128954548=:9685 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=cron-config-environment.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=cron-config-environment.patch LS0tIGNyb24tY29uZmlnLW9yaWcJMjAwNS0wMS0zMSAwNTozODo0OS4wMDEw MDAwMDAgLTA1MDANCisrKyBjcm9uLWNvbmZpZwkyMDA1LTEwLTEwIDEwOjAy OjEwLjA4NDYyNzYwMCAtMDQwMA0KQEAgLTcsNiArNywxMiBAQA0KICMgPT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PQ0KIA0KICMgPT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PQ0KKyMgTWFrZSBzdXJlIGNhc2Ugb2YgZmlsZW5hbWVzIGRv ZXNuJ3QgbWF0dGVyDQorIyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQor DQorQ1lHV0lOPSIkQ1lHV0lOIGNoZWNrX2Nhc2U6YWRqdXN0Ig0KKw0KKyMg PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PQ0KICMgUm91dGluZTogZ2V0dmFs dWUNCiAjIEdldCBhIHZlcmlmaWVkIG5vbi1lbXB0eSBzdHJpbmcgaW4gdmFy aWFibGUgInZhbHVlIg0KICMgPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0K QEAgLTY5Miw2ICs2OTgsNyBAQCBpbnN0YWxsX3NlcnZpY2UoKSB7DQogCQlm aQ0KIA0KIAkJaWYgY3lncnVuc3J2IC1JIGNyb24gLXAgL3Vzci9zYmluL2Ny b24gLWUgQ1lHV0lOPSIke250c2VjfSIgXA0KKwkJICAgIC1lIFBBVEg9Ii91 c3IvYmluOiRQQVRIIiBcDQogCQkgICAgLWEgIi1EIiAtZCAiQ3JvbiBkYWVt b24iIC11ICIkdXNlcm5hbWUiIC13ICIkX3Bhc3N3b3JkIg0KIAkJICAgIHRo ZW4NCiAJCSAgICBzZXJ2aWNlPSJzZXJ2aWNlIg0KQEAgLTcwMCw2ICs3MDcs NyBAQCBpbnN0YWxsX3NlcnZpY2UoKSB7DQogCQlmaQ0KIAkgICAgZWxzZQ0K IAkJaWYgY3lncnVuc3J2IC1JIGNyb24gLXAgL3Vzci9zYmluL2Nyb24gLWUg Q1lHV0lOPSIke250c2VjfSIgXA0KKwkJICAgIC1lIFBBVEg9Ii91c3IvYmlu OiRQQVRIIiBcDQogCQkgICAgLWEgIi1EIiAtZCAiQ3JvbiBkYWVtb24iDQog CQkgICAgdGhlbg0KIAkJICAgIHNlcnZpY2U9InNlcnZpY2UiDQo= ---559023410-959030623-1128954548=:9685 Content-Type: text/plain; charset=us-ascii -- 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/ ---559023410-959030623-1128954548=:9685--