Index: fetchmail.c =================================================================== RCS file: /home/cvs/debian/fetchmail/fetchmail.c,v retrieving revision 1.10 diff -u -r1.10 fetchmail.c --- fetchmail.c 2001/03/18 13:22:08 1.10 +++ fetchmail.c 2001/03/26 16:36:33 @@ -961,6 +961,9 @@ /* do this before the keep/fetchall test below, otherwise -d0 may fail */ if (cmd_run.poll_interval >= 0) run.poll_interval = cmd_run.poll_interval; + else + if (run.poll_interval <= 0 && cmd_run.poll_interval == -2) + run.poll_interval = 300; if (cmd_run.invisible) run.invisible = cmd_run.invisible; if (cmd_run.showdots) Index: options.c =================================================================== RCS file: /home/cvs/debian/fetchmail/options.c,v retrieving revision 1.1.1.6 diff -u -r1.1.1.6 options.c --- options.c 2001/03/18 13:00:05 1.1.1.6 +++ options.c 2001/03/26 16:26:27 @@ -84,7 +84,7 @@ /* options still left: CDgGhHjJoORwWxXYz */ static const char *shortoptions = - "?Vcsvd:NqL:f:i:p:UP:A:t:E:Q:u:akKFnl:r:S:Z:b:B:e:m:T:I:M:yw:"; + "?Vcsvd::NqL:f:i:p:UP:A:t:E:Q:u:akKFnl:r:S:Z:b:B:e:m:T:I:M:yw:"; static const struct option longoptions[] = { /* this can be const because all flag fields are 0 and will never get set */ @@ -93,7 +93,7 @@ {"check", no_argument, (int *) 0, LA_CHECK }, {"silent", no_argument, (int *) 0, LA_SILENT }, {"verbose", no_argument, (int *) 0, LA_VERBOSE }, - {"daemon", required_argument, (int *) 0, LA_DAEMON }, + {"daemon", optional_argument, (int *) 0, LA_DAEMON }, {"nodetach", no_argument, (int *) 0, LA_NODETACH }, {"quit", no_argument, (int *) 0, LA_QUIT }, {"logfile", required_argument, (int *) 0, LA_LOGFILE }, @@ -290,7 +290,10 @@ break; case 'd': case LA_DAEMON: - rctl->poll_interval = xatoi(optarg, &errflag); + if (optarg) + rctl->poll_interval = xatoi(optarg, &errflag); + else + rctl->poll_interval = -2; break; case 'N': case LA_NODETACH: