Anonymous | Login | Signup for a new account | 11-10-2008 12:41 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0004634 | [BusyBox] Other | major | always | 08-18-08 04:53 | 09-28-08 16:21 | ||||
Reporter | hinkok | View Status | public | ||||||
Assigned To | BusyBox | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 1.10.x | ||||||
Summary | 0004634: crontab editor prints last_modifying_cmd | ||||||||
Description |
Using busybox crontab to edit/create crontab for a user fails with unusable editor - nothing can be entered and bottom line says: last_modifying_cmd overrun OK: # crontab -c /etc/crontab -l */10 * * * * echo `date` >> /tmp/stamp 2>&1 FAIL: # crontab -c /etc/crontab -e |
||||||||
Additional Information |
# /strace -o /tmp/1 crontab -c /etc/crontab -l */10 * * * * echo `date` >> /tmp/stamp 2>&1 # cat /tmp/1 execve("/usr/bin/crontab", ["crontab", "-c", "/etc/crontab", "-l"], [/* 16 vars */]) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 getpid() = 876 getuid32() = 0 getuid32() = 0 geteuid32() = 0 getuid32() = 0 brk(0) = 0x11e000 brk(0x120000) = 0x120000 brk(0x120000) = 0x120000 open("/etc/passwd", O_RDONLY|O_LARGEFILE) = 3 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x9fa77b04) = -1 ENOTTY (Inappropriate ioctl for device) read(3, "root:$1$kVAeniXl$SZGxOLshb7I/.hu"..., 4096) = 112 close(3) = 0 chdir("/etc/crontab") = 0 open("root", O_RDONLY|O_LARGEFILE) = 3 read(3, "*/10 * * * *\techo `date` >> /tmp"..., 4096) = 45 write(1, "*/10 * * * *\techo `date` >> /tmp"..., 45) = 45 read(3, "", 4096) = 0 close(3) = 0 _exit(0) = ? # /strace -o /tmp/2 crontab -c /etc/crontab -e # cat /tmp/2 execve("/usr/bin/crontab", ["crontab", "-c", "/etc/crontab", "-e"], [/* 16 vars */]) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 getpid() = 879 getuid32() = 0 getuid32() = 0 geteuid32() = 0 getuid32() = 0 brk(0) = 0x11e000 brk(0x120000) = 0x120000 brk(0x120000) = 0x120000 open("/etc/passwd", O_RDONLY|O_LARGEFILE) = 3 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x9fc3fb04) = -1 ENOTTY (Inappropriate ioctl for device) read(3, "root:$1$kVAeniXl$SZGxOLshb7I/.hu"..., 4096) = 112 close(3) = 0 chdir("/etc/crontab") = 0 getpid() = 879 ioctl(2147483647, SNDCTL_TMR_TIMEBASE or TCGETS, 0x9fc3fac8) = -1 EBADF (Bad file descriptor) brk(0x122000) = 0x122000 open("/etc/crontab.879", O_RDWR|O_CREAT|O_TRUNC|O_LARGEFILE, 0600) = 3 dup2(3, 0) = 0 close(3) = 0 fchown32(0, 0, 0) = 0 open("root", O_RDONLY|O_LARGEFILE) = 3 read(3, "*/10 * * * *\techo `date` >> /tmp"..., 4096) = 45 write(0, "*/10 * * * *\techo `date` >> /tmp"..., 45) = 45 read(3, "", 4096) = 0 close(3) = 0 fork() = 880 wait4(880, 0x9fc3fbdc, 0, NULL) = ? ERESTARTSYS (To be restarted) ^^^^ until ctrl+c is pressed, when crontab process disappears from ps listing and only vi processes remain: ... 474 root 808 S /sbin/klogd -n 567 root 840 S /usr/sbin/dropbear -p 22 -P /var/run/dropbear.pid -r 745 root 816 S /usr/sbin/crond -c /etc/crontab 836 root 832 S -/bin/sh 850 root 824 R vi /etc/crontab.849 860 root 824 R vi /etc/crontab.859 871 root 824 R vi /etc/crontab.870 872 root 896 S /usr/sbin/dropbear -p 22 -P /var/run/dropbear.pid -r 873 root 832 S -sh 880 root 824 R vi /etc/crontab.879 883 root 808 R ps ... |
||||||||
Attached Files | 3.patch [^] (6,001 bytes) 09-21-08 08:27 | ||||||||
|
Notes | |
(0011794) vda 09-21-08 08:27 |
Plase try attached file (3.patch) |
(0011804) vda 09-21-08 08:29 |
The patch is applied as rev. 23450 |
(0012344) vda 09-28-08 16:21 |
Fixed in 1.12.1 and 1.11.3 |
Copyright © 2000 - 2006 Mantis Group |