Sfoglia il codice sorgente

* Make binary shell pass prompt more clear

Bryan Drewery 17 anni fa
parent
commit
4e11d0d930
2 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 2 0
      doc/UPDATES
  2. 3 2
      src/main.c

+ 2 - 0
doc/UPDATES

@@ -1,3 +1,5 @@
+* Binary pass prompt has been changed to be more clear.
+
 1.2.16 - http://wraith.botpack.net/milestone/1.2.16
 * Add 'set altchars' so that alternative characters used for nicks can be changed. (fixes #418)
 * Fix channels added by cmd_slowjoin not having the user who added them associated with the channel.

+ 3 - 2
src/main.c

@@ -250,11 +250,12 @@ static void checkpass()
   else
     hash_cmp = sha1cmp;
 
+#define SHELL_PROMPT STR("Enter your binary password: ")
 #ifdef HAVE_GETPASSPHRASE
   /* Solaris' getpass() truncates at 8 */
-  char *gpasswd = (char*) getpassphrase(STR("bash$ "));
+  char *gpasswd = (char*) getpassphrase(SHELL_PROMPT);
 #else
-  char *gpasswd = (char*) getpass(STR("bash$ "));
+  char *gpasswd = (char*) getpass(SHELL_PROMPT);
 #endif
   if (!gpasswd)
     werr(ERR_BADPASS);