/[svn]/ircd-hybrid/branches/8.2.x/tools/mkpasswd.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/tools/mkpasswd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10207 by michael, Sun May 23 15:13:15 2021 UTC revision 10208 by michael, Mon Jul 18 05:42:11 2022 UTC
# Line 151  main(int argc, char *argv[]) Line 151  main(int argc, char *argv[])
151    
152    if (flag & FLAG_PASS)    if (flag & FLAG_PASS)
153    {    {
154      if (!plaintext)      if (plaintext == NULL)
155        {
156        printf("Please enter a valid password\n");        printf("Please enter a valid password\n");
157          exit(EXIT_FAILURE);
158        }
159      }
160      else if ((plaintext = getpass("plaintext: ")) == NULL)
161      {
162        printf("getpass() failed\n");
163        exit(EXIT_FAILURE);
164    }    }
   else  
     plaintext = getpass("plaintext: ");  
165    
166    if ((ret = crypt(plaintext, salt)))    if ((ret = crypt(plaintext, salt)))
167      printf("%s\n", ret);      printf("%s\n", ret);

Legend:
Removed from v.10207  
changed lines
  Added in v.10208

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28