MantisBT - General public affairs
View Issue Details
0000757General public affairs(No Category)public2015-07-28 12:502015-07-28 12:50
tumarkin 
 
normalmajoralways
newopen 
nonenone 
x86_64GNU/Linux 3.13.0-57-genericUbuntu 14.04
0000757: Tabs in incrontab lead to command name be replaced with 0
When using tabs in incrontab, after saving the incrontab the command will be replaced with a 0.
Here is the strace log:
stat("/tmp/incron.table-1V3rnc", {st_mode=S_IFREG|0600, st_size=410, ...}) = 0
open("/tmp/incron.table-1V3rnc", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0600, st_size=410, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4b48eeb000
read(3, "/etc\t\t\t\t\t\tIN_MODIFY,IN_CLOSE_WRITE /root/bin/ibackup.sh $@/$#\n/etc/apache2\t\t\t\t\tIN_MODIFY,IN_CLOSE_WRITE /root/bin/ibackup.sh $@/$#\n/etc/apache2/sites-available\t\t\tIN_MODIFY,IN_CLOSE_WRITE /root/bin/ibackup.sh $@/$#\n/var/lib/tomcat7/webapps/ROOT/WEB-INF/web.xml\tIN_MODIFY,IN_CLOSE_WRITE /root/bin/ibackup.sh $@/$#\n/var/lib/tomcat7/webapps/ROOT/WEB-INF/config\tIN_MODIFY,IN_CLOSE_WRITE /root/bin/ibackup.sh $@/$#\n\n", 4096) = 410
read(3, "", 4096) = 0
close(3) = 0
munmap(0x7f4b48eeb000, 4096) = 0
open("/var/spool/incron/root", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4b48eeb000
write(3, "/etc\t\t\t\t\t\tIN_MODIFY,IN_CLOSE_WRITE 0 $@/$#\n/etc/apache2\t\t\t\t\tIN_MODIFY,IN_CLOSE_WRITE 0 $@/$#\n/etc/apache2/sites-available\t\t\tIN_MODIFY,IN_CLOSE_WRITE 0 $@/$#\n/var/lib/tomcat7/webapps/ROOT/WEB-INF/web.xml\tIN_MODIFY,IN_CLOSE_WRITE 0 $@/$#\n/var/lib/tomcat7/webapps/ROOT/WEB-INF/config\tIN_MODIFY,IN_CLOSE_WRITE 0 $@/$#\n", 314) = 314
close(3) = 0
munmap(0x7f4b48eeb000, 4096) = 0
chmod("/var/spool/incron/root", 0600) = 0
write(2, "table updated\n", 14) = 14
unlink("/tmp/incron.table-1V3rnc") = 0
exit_group(0) = ?
No tags attached.
Issue History
2015-07-28 12:50tumarkinNew Issue

There are no notes attached to this issue.