aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pw/pw_user.c
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1996-12-20 10:45:39 +0000
committerDavid Nugent <davidn@FreeBSD.org>1996-12-20 10:45:39 +0000
commit5e75134d213f1fd2cf0a2f4d36ee7c1852a60895 (patch)
tree8afecb42974782b9d80ec6334e8adc67b33268ff /usr.sbin/pw/pw_user.c
parentdf183ef18e4f0148adca7e90158d403000a20459 (diff)
downloadsrc-5e75134d213f1fd2cf0a2f4d36ee7c1852a60895.tar.gz
src-5e75134d213f1fd2cf0a2f4d36ee7c1852a60895.zip
Bugfix (cosmetic) for output of generated passwords.
Notes
Notes: svn path=/head/; revision=20712
Diffstat (limited to 'usr.sbin/pw/pw_user.c')
-rw-r--r--usr.sbin/pw/pw_user.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
index dabf795808fe..4d6131f79494 100644
--- a/usr.sbin/pw/pw_user.c
+++ b/usr.sbin/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 <unistd.h>
@@ -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);
}