cronolog exits with segmentation fault, when you use --unknown-longopt
Bug #71177 reported by
Tatsuya Noda
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cronolog (Debian) |
Fix Released
|
Unknown
|
|||
cronolog (Gentoo Linux) |
Fix Released
|
Medium
|
|||
cronolog (Ubuntu) |
Fix Released
|
Medium
|
Luca Falavigna |
Bug Description
> % /usr/bin/cronolog --unknown-longopt
> [1] 10748 segmentation fault (core dumped) /usr/bin/cronolog --unknown-longopt
This problem caused by not null-terminated long_options near src/cronolog.c:142.
> struct option long_options[] =
> {
...
> { "version", no_argument, NULL, 'V' }
> };
BTW, Maybe we need to do s/--prevlink/
Related branches
Changed in cronolog: | |
status: | Unknown → Confirmed |
Changed in cronolog: | |
status: | Confirmed → Fix Released |
Changed in cronolog: | |
status: | Unknown → Confirmed |
Changed in cronolog: | |
importance: | Undecided → Medium |
status: | Incomplete → Triaged |
Changed in cronolog: | |
status: | Confirmed → Unknown |
Changed in cronolog: | |
status: | Unknown → Fix Released |
Changed in cronolog: | |
assignee: | nobody → dktrkranz |
status: | Triaged → In Progress |
Changed in cronolog: | |
status: | Unknown → Confirmed |
Changed in cronolog (Gentoo Linux): | |
importance: | Unknown → Medium |
Changed in cronolog (Debian): | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
tags 217554 +forwarded
thanks
[ The above are control messages for Debian's BTS ]
Daniel Freedman submitted bug #217554 to the Debian BTS some time ago; I
apologize for not having forwarded this to you until now. If you do not
intend to release a new version of cronolog in the reasonably immediate
future (and I do realize you're short on time), I'll apply it to the Debian
package of 1.6.2, for now.
Thank you for your time and effort on cronolog; hopefully this patch will
help to improve it further.
I also have a second patch from Mr. Freedman, which I will send immediately
after this one.
From: Daniel Freedman <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: Bug#217554: cronolog: man page typo [patch]
Reply-To: Daniel Freedman <email address hidden>, <email address hidden>
Package: cronolog
Version: N/A; reported 2003-10-25
Severity: minor
Tags: patch
Hi,
Here's a very short patch to fix the typo in the manpage, where one of
the command line options doesn't agree with the source or the command's
default output help.
warthog:~# diff -C4 cronolog.1m cronolog.1m.orig symlink= \fINAME\ fP" \fINAME\ fP"
*** cronolog.1m Sat Oct 25 14:29:46 2003
--- cronolog.1m.orig Sat Oct 25 14:29:08 2003
***************
*** 76,84 ****
.I NAME
to the current log file.
.\"
.IP "-P \fINAME\fP"
! .IP "--prev-
maintain a symbolic link from
.I NAME
to the previous log file. Requires that the
.B "--symlink"
--- 76,84 ----
.I NAME
to the current log file.
.\"
.IP "-P \fINAME\fP"
! .IP "--prevlink=
maintain a symbolic link from
.I NAME
to the previous log file. Requires that the
.B "--symlink"
warthog:~#
--
` . `'
`-
Joel Baker <email address hidden> ,''`.
Debian GNU NetBSD/i386 porter : :' :