X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/af429a902add614e35cd76d15172a4ccb70a3be1..fc69a9cd8f854da20fc2f4cf99fcf726958485f5:/uip/post.c diff --git a/uip/post.c b/uip/post.c index 69f5b821..aadc6271 100644 --- a/uip/post.c +++ b/uip/post.c @@ -496,17 +496,9 @@ main (int argc, char **argv) continue; case CREDENTIALSSW: { - /* post doesn't read the profile, so insert credentials - entry the hard way. */ - struct node *np = (struct node *) mh_xmalloc (sizeof *np); - if (!(cp = *argp++) || *cp == '-') adios (NULL, "missing argument to %s", argp[-2]); - np->n_name = "credentials"; - np->n_field = cp; - np->n_context = 0; - np->n_next = m_defs; - m_defs = np; + add_profile_entry ("credentials", cp); continue; }