[asterisk-dev] These fixes ok?
Patrick
asterisk-list at puzzled.xs4all.nl
Fri Apr 25 11:17:41 CDT 2008
On Fri, 2008-04-25 at 13:20 +0000, Tony Mountifield wrote:
> >
> > File: apps/app_chanspy.c on line 441
> > Change: if ((fd = open(filename, O_CREAT | O_WRONLY, O_TRUNC, 0644))
> > To: if ((fd = open(filename, O_CREAT | O_WRONLY, O_TRUNC))
>
> This last one is wrong. The error in the original is that the comma
> before O_TRUNC should be a | character:
>
> Change: if ((fd = open(filename, O_CREAT | O_WRONLY, O_TRUNC, 0644))
> To: if ((fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0644))
Thanks Tony!
Regards,
Patrick
More information about the asterisk-dev
mailing list