[patch] bb_perror_nomsg_and_die() seg fault

Denis Vlasenko vda.linux at googlemail.com
Tue May 29 21:42:14 UTC 2007


On Tuesday 29 May 2007 12:05, Daniel Farrugia wrote:
> The following trivial patch fixed this problem for me:
> 
> diff -urN a/libbb/perror_nomsg_and_die.c b/libbb/perror_nomsg_and_die.c
> --- a/libbb/perror_nomsg_and_die.c  2007-05-20 18:56:18.000000000 +0200
> +++ b/libbb/perror_nomsg_and_die.c  2007-05-29 11:11:54.000000000 +0200
> @@ -17,5 +17,5 @@
>  void bb_perror_nomsg_and_die(void);
>  void bb_perror_nomsg_and_die(void)
>  {
> -       bb_perror_msg_and_die(0);
> +       bb_perror_msg_and_die("");
>  }

This fix is in the wrong place. It's better to stem the problem
in bb_verror_msg().

Please try attached patch.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4.patch
Type: text/x-diff
Size: 1155 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070529/804fb3e2/attachment-0002.bin 


More information about the busybox mailing list