Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 86991 Details for
Bug 133677
dcron: last character of the last crontab command is missing
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Matt's solution from dcron-3.2
dcron-2.9-newlinefix.patch (text/plain), 598 bytes, created by
Daniel Faber
on 2006-05-18 04:56:41 UTC
(
hide
)
Description:
Matt's solution from dcron-3.2
Filename:
MIME Type:
Creator:
Daniel Faber
Created:
2006-05-18 04:56:41 UTC
Size:
598 bytes
patch
obsolete
>diff -ru dcron-2.9/database.c dcron-2.9-newlinefix/database.c >--- dcron-2.9/database.c 2002-03-22 18:54:46.000000000 +0100 >+++ dcron-2.9-newlinefix/database.c 2006-05-18 13:01:31.000000000 +0200 >@@ -169,12 +169,14 @@ > while (fgets(buf, sizeof(buf), fi) != NULL && --maxLines) { > CronLine line; > char *ptr = buf; >+ int len; > > while (*ptr == ' ' || *ptr == '\t' || *ptr == '\n') > ++ptr; > >- if (*ptr) >- ptr[strlen(ptr)-1] = 0; >+ len = strlen(ptr); >+ if (len && ptr[len-1] == '\n') >+ ptr[--len] = 0; > > if (*ptr == 0 || *ptr == '#') > continue;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 133677
: 86991