Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82751 - fcron-2.9.5.1-r2 always gives unknown command
Summary: fcron-2.9.5.1-r2 always gives unknown command
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 All
: High normal
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-20 18:58 UTC by Georgi Georgiev
Modified: 2005-04-08 08:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2005-02-20 18:58:29 UTC
fcrondyn always gives an "Unknown command" message when run on a amd64. I traced the problem to a wrong type in the fcrondyn.h header.

Steps to reproduce: 

1. fcrondyn
2. Type in password
3. ls

Actual results:

Error: Unknown command

Expected results:
ID    USER   SCHEDULE         CMD
0     root   02/21/2005 12:00 rm -f /var/spool/cron/lastrun/cron.hourly
or similar.

Fix:

--- fcron-2.9.5.1.old/fcrondyn.h        2004-11-15 01:32:36.000000000 +0900
+++ fcron-2.9.5.1/fcrondyn.h    2005-02-21 11:48:19.335893136 +0900
@@ -41,7 +41,7 @@
     char *cmd_name;
     char *cmd_desc;
     int cmd_numopt;
-    int cmd_code;
+    long int cmd_code;
     int cmd_opt[MAX_NUM_OPT];
     int cmd_default[MAX_NUM_OPT];
 } cmd_list_ent;
Comment 1 Georgi Georgiev 2005-04-08 08:34:00 UTC
Patch was accepted upstream as of 2.9.6.

Closing.