Commit 260dc804 by Cédric Tissières

No need to escape colon when outputting to log file

parent 67c5aeb3
......@@ -667,15 +667,11 @@ void hash_print(hash_t *hsh, FILE *file, int nice, int status, int hide) {
if (lmhsh1) {
if (lmhsh1->done) {
convert_from_colon((uchar_t*)lmhsh1->pwd);
fprintf(file, "%-7s", lmhsh1->pwd);
convert_to_colon((uchar_t*)lmhsh1->pwd);
} else fprintf(file, ".......");
if (lmhsh2 && lmhsh2->done) {
convert_from_colon((uchar_t*)lmhsh2->pwd);
fprintf(file, "%-7s", lmhsh2->pwd);
convert_to_colon((uchar_t*)lmhsh2->pwd);
} else fprintf(file, ".......");
} else fprintf(file, "*** empty *** ");
......@@ -683,9 +679,7 @@ void hash_print(hash_t *hsh, FILE *file, int nice, int status, int hide) {
if (nthsh) {
if (nthsh->done) {
convert_from_colon((uchar_t*)nthsh->pwd);
fprintf(file, "%s", nthsh->pwd);
convert_to_colon((uchar_t*)nthsh->pwd);
if (nthsh->pwd[0] == 0) fprintf(file, "*** empty ***");
} else fprintf(file, ".......");
} else fprintf(file, "*** empty ***");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment