diff options
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1356,7 +1356,7 @@ get_platform_prefix (void) } void -get_user_pass_auto_userid (struct user_pass *up) +get_user_pass_auto_userid (struct user_pass *up, const char *tag) { struct gc_arena gc = gc_new (); MD5_CTX ctx; @@ -1381,6 +1381,8 @@ get_user_pass_auto_userid (struct user_pass *up) { buf_printf (&buf, "UNKNOWN"); } + if (tag && strcmp (tag, "stdin")) + buf_printf (&buf, "-%s", tag); up->defined = true; gc_free (&gc); |