From 16a21e7a7bdcc33504a9ee08c9af57d1c8dc874f Mon Sep 17 00:00:00 2001 From: David Nugent Date: Fri, 20 Dec 1996 10:45:39 +0000 Subject: Bugfix (cosmetic) for output of generated passwords. --- pw/pw_user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pw/pw_user.c') diff --git a/pw/pw_user.c b/pw/pw_user.c index dabf795..4d6131f 100644 --- a/pw/pw_user.c +++ b/pw/pw_user.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pw_user.c,v 1.5 1996/12/17 14:15:35 davidn Exp $ + * $Id: pw_user.c,v 1.6 1996/12/19 15:22:45 davidn Exp $ */ #include @@ -829,8 +829,8 @@ pw_password(struct userconf * cnf, struct cargs * args, char const * user) * We give this information back to the user */ if (getarg(args, 'h') == NULL && getarg(args, 'N') == NULL) { - if (isatty(0)) - printf("Password is: "); + if (isatty(1)) + printf("Password for '%s' is: ", user); printf("%s\n", pwbuf); fflush(stdout); } -- cgit v1.2.3