]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Hide manager password from "manager show user foo".
authorJason Parker <jparker@digium.com>
Fri, 11 May 2007 20:16:17 +0000 (20:16 +0000)
committerJason Parker <jparker@digium.com>
Fri, 11 May 2007 20:16:17 +0000 (20:16 +0000)
I realize that there are other ways to get this,
 but we really don't need to just show it in plain text so easily.

Issue 9273, patch by junky

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63982 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index b7c37c925854207b2125dc5faaf91335c53eb824..b3933df32cf14d2b71ac8eb49b98608e85ad548d 100644 (file)
@@ -479,7 +479,7 @@ static int handle_showmanager(int fd, int argc, char *argv[])
                "          write: %s\n"
                "displayconnects: %s\n",
                (user->username ? user->username : "(N/A)"),
-               (user->secret ? user->secret : "(N/A)"),
+               (user->secret ? "<Set>" : "(N/A)"),
                (user->deny ? user->deny : "(N/A)"),
                (user->permit ? user->permit : "(N/A)"),
                (user->read ? user->read : "(N/A)"),