Received: (at submit) by bugs.debian.org; 7 Dec 2000 19:15:22 +0000 From kuba@aiesec.ae.wroc.pl Thu Dec 07 13:15:22 2000 Return-path: Received: from kuba.ae.wroc.pl [156.17.80.35] (mail) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 1446Vl-0004Fv-00; Thu, 07 Dec 2000 13:15:21 -0600 Received: from kuba by kuba.ae.wroc.pl with local (Exim 3.12 #1 (Debian)) id 1446US-0006Rc-00; Thu, 07 Dec 2000 20:14:00 +0100 From: Jakub Chmielewski To: Debian Bug Tracking System Subject: cron does not shout when the crontab lacks a newline. X-Reportbug-Version: 0.54 X-Mailer: reportbug 0.54 Date: Thu, 07 Dec 2000 20:14:00 +0100 Message-Id: Sender: Jakub Chmielewski Delivered-To: submit@bugs.debian.org Package: cron Version: 3.0pl1-57.1 Severity: normal Hi, I put some files in /etc/cron.d but have found out that the cron does not run then, though they are marked as loaded (RELOAD in the log). I've dug the source and found the load_user routine in user.c. When it loads environment ([near] line 89) while ((status = load_env(envstr, file)) >= OK) { and load_env fails with ERR, which actually happens when there's no \n trailing the crontab entry it just skips the crontab without any warning notice. Besides, the code never seems to reach the code in the switch statement with ERR label, as ERR is always less than OK. Regards, Jakub Chmielewski -- System Information Debian Release: 2.2 Architecture: i386 Kernel: Linux kuba 2.2.17 #5 Mon Sep 11 13:42:41 CEST 2000 i686 Versions of packages cron depends on: ii bsdutils 1:2.10f-5.1 Basic utilities from 4.4BSD-Lite. ii debianutils 1.13.3 Miscellaneous utilities specific t ii libc6 2.1.3-13 GNU C Library: Shared libraries an