Hi,

The attached patch is required with glibc2.7 (shipped with fedora 8), which 
added a lot of parameter checking to standard calls.

Regards,
György
--- chan_zap.c.old	2007-10-23 01:40:02.000000000 +0200
+++ chan_zap.c	2007-11-18 23:10:34.000000000 +0100
@@ -8982,7 +8982,7 @@
 		if (opbx_strlen_zero(argv[4]))
 			return RESULT_SHOWUSAGE;
 
-		myfd = open(argv[4], O_CREAT|O_WRONLY);
+		myfd = open(argv[4], O_CREAT|O_WRONLY,00660);
 		if (myfd < 0) {
 			opbx_cli(fd, "Unable to open '%s' for writing\n", argv[4]);
 			return RESULT_SUCCESS;
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to