Mailing Lists
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[curl:bugs] #1476 getpass_r() in tool_getpass.c is reading password from stdout instead of stdin
From: Tamir <zegman_at_users.sf.net>
Date: Mon, 26 Jan 2015 11:34:59 +0000
--- ** [bugs:#1476] getpass_r() in tool_getpass.c is reading password from stdout instead of stdin** **Status:** open **Created:** Mon Jan 26, 2015 11:34 AM UTC by Tamir **Last Updated:** Mon Jan 26, 2015 11:34 AM UTC **Owner:** nobody getpass_r() in tool_getpass.c is reading password from stdout instead of stdin fd should be set 0 when /dev/tty is unavailable. char *getpass_r(const char *prompt, /* prompt to display */ char *password, /* buffer to store password in */ size_t buflen) /* size of buffer to store password in */ { ... int fd = open("/dev/tty", O_RDONLY); if(-1 == fd) fd = 1; /* use stdin if the tty couldn't be used */ ... } --- Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.Received on 2015-01-26 These mail archives are generated by hypermail. |