Skip to content

Commit

Permalink
[#208] Tell the user where the master key is stored.
Browse files Browse the repository at this point in the history
Close #208.

Similar to commit 5de2957
When the master key file is saved, a message is printed out on the terminal
so that the user knows where the file is.
Example of session:

% pgagroal-admin master-key
Master key (will not echo):
Master Key stored into /home/luca/.pgagroal/master.key
  • Loading branch information
fluca1978 committed Feb 21, 2022
1 parent 635fecf commit a41b758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ master_key(char* password, bool generate_pwd, int pwd_length)
fclose(file);

chmod(&buf[0], S_IRUSR | S_IWUSR);

printf("Master Key stored into %s\n", &buf[0]);
return 0;

error:
Expand Down

0 comments on commit a41b758

Please sign in to comment.