summaryrefslogtreecommitdiff
path: root/modules/pam_issue/pam_issue.c
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2005-04-19 07:37:50 +0000
committerTomas Mraz <tm@t8m.info>2005-04-19 07:37:50 +0000
commit5fd4e6dd66443119070b41c226809d263a6d0d23 (patch)
tree0e790f908bf83d695ecf684f214743bcdd720dff /modules/pam_issue/pam_issue.c
parent9c459446c2424d46622e95e4d54280fee0ef9607 (diff)
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- Various cleanups and minor bugfixes by Steve Grubb.
Diffstat (limited to 'modules/pam_issue/pam_issue.c')
-rw-r--r--modules/pam_issue/pam_issue.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/pam_issue/pam_issue.c b/modules/pam_issue/pam_issue.c
index 5665966e..ba2d2006 100644
--- a/modules/pam_issue/pam_issue.c
+++ b/modules/pam_issue/pam_issue.c
@@ -269,10 +269,11 @@ static char *do_prompt(FILE *fd)
if (ut->ut_type == USER_PROCESS)
users++;
endutent();
- printf ("%d ", users);
if (c == 'U')
- snprintf (buf, 1024, "%s", (users == 1) ?
- " user" : " users");
+ snprintf (buf, 1024, "%d %s", users,
+ (users == 1) ? "user" : "users");
+ else
+ snprintf (buf, 1024, "%d", users);
break;
}
default: