[asterisk-commits] kpfleming: trunk r90149 - /trunk/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 29 07:30:51 CST 2007


Author: kpfleming
Date: Thu Nov 29 07:30:50 2007
New Revision: 90149

URL: http://svn.digium.com/view/asterisk?view=rev&rev=90149
Log:
restore behavior from the 1.4 branch... manager users created via users.conf should default to *all* permissions, not none

Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=90149&r1=90148&r2=90149
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Thu Nov 29 07:30:50 2007
@@ -1049,6 +1049,10 @@
 			ast_log(LOG_NOTICE, "%s tried to authenticate with nonexistent user '%s'\n", ast_inet_ntoa(s->sin.sin_addr), user);
 			return -1;
 		}
+		if (!readperm)
+			readperm = -1;
+		if (!writeperm)
+			writeperm = -1;
 	}
 
 	}




More information about the asterisk-commits mailing list