rpms/asterisk/F-9 0016-Fix-a-reversed-logic-ast_strlen_zero.patch, NONE, 1.1 asterisk.spec, 1.35, 1.36

Jeffrey C. Ollie jcollie at fedoraproject.org
Sat Jan 24 03:47:42 UTC 2009


Author: jcollie

Update of /cvs/pkgs/rpms/asterisk/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24565

Modified Files:
	asterisk.spec 
Added Files:
	0016-Fix-a-reversed-logic-ast_strlen_zero.patch 
Log Message:
* Fri Jan 23 2009 Jeffrey C. Ollie <jeff at ocjtech.us> - 1.6.0.5-2
- Add a patch to fix a problem with the manager interface.


0016-Fix-a-reversed-logic-ast_strlen_zero.patch:

--- NEW FILE 0016-Fix-a-reversed-logic-ast_strlen_zero.patch ---
>From f439a25ddc062941e2e14d7c3cf60b55b324f98b Mon Sep 17 00:00:00 2001
From: mmichelson <mmichelson at f38db490-d61c-443f-a65b-d21fe96a405b>
Date: Fri, 5 Dec 2008 22:59:43 +0000
Subject: [PATCH] Fix a reversed-logic ast_strlen_zero.

This problem was pointed out on the asterisk-users list
by Jim Dickenson

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@161490 f38db490-d61c-443f-a65b-d21fe96a405b
---
 main/manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/main/manager.c b/main/manager.c
index 0076f64..5eb8339 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -2163,7 +2163,7 @@ static int action_originate(struct mansession *s, const struct message *m)
 	int format = AST_FORMAT_SLINEAR;
 
 	pthread_t th;
-	if (!ast_strlen_zero(name)) {
+	if (ast_strlen_zero(name)) {
 		astman_send_error(s, m, "Channel not specified");
 		return 0;
 	}
-- 
1.6.0.6



Index: asterisk.spec
===================================================================
RCS file: /cvs/pkgs/rpms/asterisk/F-9/asterisk.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- asterisk.spec	24 Jan 2009 02:23:52 -0000	1.35
+++ asterisk.spec	24 Jan 2009 03:47:12 -0000	1.36
@@ -3,7 +3,7 @@
 Summary: The Open Source PBX
 Name: asterisk
 Version: 1.6.0.5
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2
 Group: Applications/Internet
 URL: http://www.asterisk.org/
@@ -47,6 +47,7 @@
 Patch13: 0013-Update-autoconf.patch
 Patch14: 0014-Fix-up-some-paths.patch
 Patch15: 0015-Add-LDAP-schema-that-is-compatible-with-Fedora-Direc.patch
+Patch16: 0016-Fix-a-reversed-logic-ast_strlen_zero.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
 
@@ -435,6 +436,7 @@
 %patch13 -p1
 %patch14 -p1
 %patch15 -p1
+%patch16 -p1
 
 cp %{SOURCE2} menuselect.makedeps
 cp %{SOURCE3} menuselect.makeopts
@@ -1052,6 +1054,9 @@
 %{_libdir}/asterisk/modules/app_voicemail_plain.so
 
 %changelog
+* Fri Jan 23 2009 Jeffrey C. Ollie <jeff at ocjtech.us> - 1.6.0.5-2
+- Add a patch to fix a problem with the manager interface.
+
 * Fri Jan 23 2009 Jeffrey C. Ollie <jeff at ocjtech.us> - 1.6.0.5-1
 - Update to 1.6.0.5 to fix regressions caused by fixes for
   AST-2009-001/CVE-2009-0041 (Asterisk 1.6.0.4 was never released).




More information about the fedora-extras-commits mailing list