From: "Christian HOFFMANN" <christian.hoffmann@noos.fr>
To: Matthew Dillon <dillon@apollo.backplane.com>, gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Re: [BUG and PATCH] Does dcron need a space at the end of each
Date: Thu, 21 Mar 2002 21:34:15 +0100 [thread overview]
Message-ID: <3C9A51D7.13213.459829@localhost> (raw)
In-Reply-To: <200203210212.g2L2Cxw87510@apollo.backplane.com>
I tested your proposed modification, it works far better than mine.
I was just wrong in the beginning, my problem was lines starting with a
space (for allignment purpose) and my patch break the others tasks on
lines not starting with a space.
Now dcron work for lines starting or not with a space or tabs or...
For your information dcron2.7 is the standard cron for the Gentoo
Linux distribution. http://www.gentoo.org
>
> :I just fired gdb to find the source of this problem and found the source
> :of the problem being at line 178 of database.c
> :
> :was: buf[strlen(ptr)-1] = 0;
> :is now on my system: buf[strlen(ptr)] = 0;
> :
> :This line was chopping 2 char at the end of the line the last one of the
> :command and the newline. You have to remove one char but indexing
> :starts at 0 and strlen give the number of char.
> :
> :I'm new to patch submission, howto ?
> :
> :Regards
>
> Well, I do not know who is maintaining the linux version of dcron.
> I maintain my master source but I don't think the linux sites are
> picking it up.
>
> In regards to this bug, I think the problem is that it should be
> 'ptr[strlen(ptr)-1] = 0' rather then 'buf[strlen(ptr)-1] = 0'.
> That is, it is trying to remove the newline at the end of the
> buffer. The bug occurs if you have spaces at the front of the line.
>
> Please try 'ptr[strlen(ptr)-1] = 0' and see if that solves your
> problem.
>
> -Matt
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
>
-----------------------------------------------
Christian HOFFMANN <christian.hoffmann@noos.fr>
next prev parent reply other threads:[~2002-03-21 20:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-20 21:40 [gentoo-dev] [BUG and PATCH] Does dcron need a space at the end of each Christian HOFFMANN
2002-03-21 2:12 ` [gentoo-dev] " Matthew Dillon
2002-03-21 20:34 ` Christian HOFFMANN [this message]
2002-03-22 19:59 ` Matthew Dillon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C9A51D7.13213.459829@localhost \
--to=christian.hoffmann@noos.fr \
--cc=dillon@apollo.backplane.com \
--cc=gentoo-dev@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox