mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
This commit was generated by cvs2svn to compensate for changes in r94735,
which included commits to RCS files with non-trunk default branches.
This commit is contained in:
commit
dfcaf7512d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94736
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/lib/openpam_ttyconv.c#9 $
|
||||
* $P4: //depot/projects/openpam/lib/openpam_ttyconv.c#10 $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -160,9 +160,15 @@ openpam_ttyconv(int n,
|
||||
break;
|
||||
case PAM_ERROR_MSG:
|
||||
fputs(msg[i]->msg, stderr);
|
||||
if (strlen(msg[i]->msg) > 0 &&
|
||||
msg[i]->msg[strlen(msg[i]->msg) - 1] != '\n')
|
||||
fputc('\n', stderr);
|
||||
break;
|
||||
case PAM_TEXT_INFO:
|
||||
fputs(msg[i]->msg, stdout);
|
||||
if (strlen(msg[i]->msg) > 0 &&
|
||||
msg[i]->msg[strlen(msg[i]->msg) - 1] != '\n')
|
||||
fputc('\n', stdout);
|
||||
break;
|
||||
default:
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user