]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
*** empty log message ***
authorThibault Godouet <yo8192@users.noreply.github.com>
Mon, 20 Aug 2001 10:54:45 +0000 (10:54 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Mon, 20 Aug 2001 10:54:45 +0000 (10:54 +0000)
fcron.c
fileconf.c
global.h
save.h

diff --git a/fcron.c b/fcron.c
index 04ba9dbd8ab08e61093f6f319d539f5b353c9139..aac04db44d5ec778aede382e4f138d0f7e988050 100644 (file)
--- a/fcron.c
+++ b/fcron.c
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: fcron.c,v 1.54 2001-08-17 19:42:14 thib Exp $ */
+ /* $Id: fcron.c,v 1.55 2001-08-20 10:54:45 thib Exp $ */
 
 #include "fcron.h"
 
-char rcs_info[] = "$Id: fcron.c,v 1.54 2001-08-17 19:42:14 thib Exp $";
+char rcs_info[] = "$Id: fcron.c,v 1.55 2001-08-20 10:54:45 thib Exp $";
 
 void main_loop(void);
 void check_signal(void);
@@ -151,9 +151,9 @@ print_schedule(void)
        for (cl = cf->cf_line_base; cl; cl = cl->cl_next) {
            ftime = localtime( &(cl->cl_nextexe) );
            explain("  cmd %s next exec %d/%d/%d wday:%d %02d:%02d",
-                 cl->cl_shell, (ftime->tm_mon + 1), ftime->tm_mday,
-                 (ftime->tm_year + 1900), ftime->tm_wday,
-                 ftime->tm_hour, ftime->tm_min); 
+                   cl->cl_shell, (ftime->tm_mon + 1), ftime->tm_mday,
+                   (ftime->tm_year + 1900), ftime->tm_wday,
+                   ftime->tm_hour, ftime->tm_min); 
            
        }
     }
index 7421a081ccc466a8fe1c17f4517f60568f61d039..75ec21b120e22d4cb3511f5dea3a1031e4ce7133 100644 (file)
@@ -22,7 +22,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: fileconf.c,v 1.50 2001-07-09 21:07:28 thib Exp $ */
+ /* $Id: fileconf.c,v 1.51 2001-08-20 10:57:50 thib Exp $ */
 
 #include "fcrontab.h"
 #include "fileconf.h"
@@ -999,6 +999,8 @@ check_username(char *ptr, CF *cf, CL *cl)
     struct passwd *userpwent;
 
     /* check to see if next word is a username */
+    /* we don't allow quotes, to be able to distinguish a user name from
+     * a command line (where quotes are allowed */
     while ( isalnum( (int) ptr[indx]) ) indx++;
     if (indx > USER_NAME_LEN) indx = USER_NAME_LEN;
     strncpy(username, ptr, indx);
index 3662d4762c27c53894c2ded47b5829fef6dd753d..b7348bee44e3524258f7f12bd597d36dcee974ed 100644 (file)
--- a/global.h
+++ b/global.h
@@ -21,7 +21,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: global.h,v 1.31 2001-08-17 19:43:53 thib Exp $ */
+ /* $Id: global.h,v 1.32 2001-08-20 10:58:07 thib Exp $ */
 
 
 /* 
@@ -169,7 +169,7 @@ typedef struct CL {
     unsigned short cl_runfreq;    /* Run once every n matches                */
     unsigned char  cl_option[OPTION_SIZE]; /* line's option (see option.h)   */
     unsigned char  cl_lavg[LAVG_SIZE];/*load averages needed (1,5,15 mins)   */
-    unsigned char  cl_numexe;     /* num of entries in lavg/serial queue     */
+    unsigned char  cl_numexe;     /* entries in queues & running processes   */
     char           cl_nice;       /* nice value to control priority          */
     /* see bitstring(3) man page for more details */
     bitstr_t      bit_decl(cl_mins, 60); /* 0-59                            */
diff --git a/save.h b/save.h
index 17e2cb3111bfe2543f73503f8a1c03b43ee62fb4..07c2d906a9fcb879c53c84541ca249bb4593f30d 100644 (file)
--- a/save.h
+++ b/save.h
@@ -21,7 +21,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: save.h,v 1.2 2001-05-24 19:59:58 thib Exp $ */
+ /* $Id: save.h,v 1.3 2001-08-20 11:01:18 thib Exp $ */
 
 
 /* here is the format fcron(tab) uses to save the fcrontabs :
@@ -55,7 +55,7 @@
 /* line field types */
 #define S_ENDLINE_T    2000  /* we need to know where a new line begin */
 #define S_SHELL_T      2001  /* shell command of the line */
-#define S_NUMEXE_T     2002  /* number of entries in lavg/serial queue */
+#define S_NUMEXE_T     2002  /* num of entries in queues & running processes */
 #define S_LAVG_T       2003  /* load averages needed (1, 5, 15 mins) */
 #define S_UNTIL_T      2004  /* timeout of the wait for a lavg value */
 #define S_NICE_T       2005  /* nice value to control priority */