[asterisk-commits] eliel: branch eliel/cli-permissions r154148 - in /team/eliel/cli-permissions:...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 4 06:29:07 CST 2008
Author: eliel
Date: Tue Nov 4 06:29:07 2008
New Revision: 154148
URL: http://svn.digium.com/view/asterisk?view=rev&rev=154148
Log:
Remove trailing spaces.
Modified:
team/eliel/cli-permissions/configs/cli_permissions.conf.sample
team/eliel/cli-permissions/main/cli.c
Modified: team/eliel/cli-permissions/configs/cli_permissions.conf.sample
URL: http://svn.digium.com/view/asterisk/team/eliel/cli-permissions/configs/cli_permissions.conf.sample?view=diff&rev=154148&r1=154147&r2=154148
==============================================================================
--- team/eliel/cli-permissions/configs/cli_permissions.conf.sample (original)
+++ team/eliel/cli-permissions/configs/cli_permissions.conf.sample Tue Nov 4 06:29:07 2008
@@ -5,8 +5,8 @@
; rasterisk, should have write/read/execute access to the
; asterisk socket (asterisk.ctl). You could change the permissions
; of this file in 'asterisk.conf' config parameter: 'astctlpermissions' (0666)
-; found on the [files] section.
-;
+; found on the [files] section.
+;
; general options:
;
; default_perm = permit | deny
@@ -27,7 +27,7 @@
;
; Follows the per-users permissions configs.
;
-; This list is read in the sequence that is being written, so
+; This list is read in the sequence that is being written, so
; In this example the user 'eliel' is allow to run only the following
; commands:
; sip show peer
@@ -39,7 +39,7 @@
; [supportTemplate](!)
; deny=all
; permit=sip show ; all commands starting with 'sip show' will be allowed
-; permit=core show
+; permit=core show
;
; You can specify permissions for a local group instead of a user,
; just put a '@' and we will know that is a group.
Modified: team/eliel/cli-permissions/main/cli.c
URL: http://svn.digium.com/view/asterisk/team/eliel/cli-permissions/main/cli.c?view=diff&rev=154148&r1=154147&r2=154148
==============================================================================
--- team/eliel/cli-permissions/main/cli.c (original)
+++ team/eliel/cli-permissions/main/cli.c Tue Nov 4 06:29:07 2008
@@ -957,7 +957,7 @@
e->usage =
"Usage: cli check permissions {<username>|@<groupname>|<username>@<groupname>} [<command>]\n"
" Check permissions config for a user at group or list the allowed commands for the specified user.\n"
- " The username or the groupname may be omitted.\n";
+ " The username or the groupname may be omitted.\n";
return NULL;
case CLI_GENERATE:
if (a->pos >= 4) {
@@ -1011,8 +1011,8 @@
}
} else {
ast_join(command, sizeof(command), a->argv + 4);
- ast_cli(a->fd, "%s '%s%s%s' is %s to run command: '%s'\n", uid >= 0 ? "User" : "Group", tmp,
- group && uid >= 0 ? "@" : "",
+ ast_cli(a->fd, "%s '%s%s%s' is %s to run command: '%s'\n", uid >= 0 ? "User" : "Group", tmp,
+ group && uid >= 0 ? "@" : "",
group ? &group[1] : "",
cli_has_permissions(uid, gid, command) ? "permit" : "deny", command);
}
@@ -1551,7 +1551,7 @@
}
continue;
}
-
+
/* users or groups */
gr = NULL, pw = NULL;
if (cat[0] == '@') {
@@ -1578,7 +1578,7 @@
the current list. */
user_group = cp_entry;
break;
- }
+ }
}
AST_RWLIST_UNLOCK(&cli_perms);
More information about the asterisk-commits
mailing list