This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Bug in /usr/bin/cron-config (needs quotation marks)


A couple of places in /usr/bin/cron-config (cron version 4.1-6) are
missing quotation marks around variables in tests, resulting in errors
when the username contains spaces.

Example errors:
------------------------------------------------
Do you want to install the cron daemon as a service? (yes/no) no
Running cron_diagnose ...
/usr/bin/cron-config: line 456: [: /var/cron/tabs/Will: binary operator expected
/usr/bin/cron-config: line 459: [: /var/cron/tabs/Will: binary operator expected
/usr/bin/cron-config: line 371: [: /var/cron/tabs/Will: binary operator expected
ls: cannot access /var/cron/tabs/Will Palmer: No such file or directory
cron table files need to writable only by the owner,
readable by the owner and he group, and executable by no one.
The permissions of your cron table file are set to:
ls: cannot access /var/cron/tabs/Will: No such file or directory
ls: cannot access Palmer: No such file or directory
------------------------------------------------


-- 
Will Palmer
wmpalmer@gmail.com
(+44) 01303 245 210

Attachment: cron-config.p
Description: Binary data

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]