Handle windows systems
authorJamie Cameron <jcameron@webmin.com>
Fri, 11 Dec 2009 21:56:46 +0000 (13:56 -0800)
committerJamie Cameron <jcameron@webmin.com>
Fri, 11 Dec 2009 21:56:46 +0000 (13:56 -0800)
cron/cron-lib.pl

index 56a78cf..47d641a 100755 (executable)
@@ -1342,7 +1342,8 @@ if ($config{'cron_get_command'} =~ /^(\S+)/ && !&has_command("$1")) {
        }
 # Check for directory
 local $fcron = ($config{'cron_dir'} =~ /\/fcron$/);
-if (!$single_user && !$fcron && !-d $config{'cron_dir'}) {
+if (!$single_user && !$config{'single_file'} &&
+    !$fcron && !-d $config{'cron_dir'}) {
        return &text('index_ecrondir', "<tt>$config{'cron_dir'}</tt>");
        }
 return undef;