diff options
author | David Nugent <davidn@FreeBSD.org> | 1996-12-20 10:45:39 +0000 |
---|---|---|
committer | David Nugent <davidn@FreeBSD.org> | 1996-12-20 10:45:39 +0000 |
commit | 8190d274530149353be5a67c1e345aba46555967 (patch) | |
tree | 9732d48fde36fb2e8bda53e25110d4278cec4547 | |
parent | ef8f4b6c8990acbd218286b5693d000311801cb0 (diff) | |
download | pw-darwin-8190d274530149353be5a67c1e345aba46555967.tar.gz pw-darwin-8190d274530149353be5a67c1e345aba46555967.tar.zst pw-darwin-8190d274530149353be5a67c1e345aba46555967.zip |
Bugfix (cosmetic) for output of generated passwords.
-rw-r--r-- | pw/pw_user.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <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); } |