On Mon, Jan 23, 2006 at 12:18:43AM +0100, Josip Rodin wrote:
> > Since the latest "sudo" security update (DSA-946) that joe can't be run
> > from sudo. It segfaults.
> >
> > >>From the ltrace and strace output it seems that joe segfaults because
> > sudo doesn't pass along the HOME environment variable anymore.
>
> Yes. Granted, it's silly, but so is sudo changing behaviour in stable.
> (#349196)
The processing function doesn't handle an uninitialized file descriptor,
apparently, and goes on to read from an unopened fd, which fails miserably.
This is the trivial fix:
--- charmap.c~ 2006-01-23 00:51:21.000000000 +0100
+++ charmap.c 2006-01-23 00:51:21.000000000 +0100
@@ -1273,7 +1273,7 @@
unsigned char *p;
struct charmap *m;
struct builtin_charmap *b;
- FILE *f;
+ FILE *f = NULL;
int y;
if (!name)
--
2. That which causes joy or happiness.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]