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:
Dag-Erling Smørgrav 2013-02-25 07:13:35 +00:00
parent f70250359e
commit 515667a9c5
1 changed files with 2 additions and 0 deletions

View File

@ -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()");