Add a default service name.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@621 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
f70250359e
commit
515667a9c5
|
@ -351,6 +351,8 @@ main(int argc, char *argv[])
|
|||
++argv;
|
||||
|
||||
/* defaults */
|
||||
if (service == NULL)
|
||||
service = "pamtest";
|
||||
if (rhost == NULL) {
|
||||
if (gethostname(hostname, sizeof(hostname)) == -1)
|
||||
err(1, "gethostname()");
|
||||
|
|
Loading…
Reference in New Issue