Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJordi Sanfeliu <jordi@fibranet.cat>2023-07-17 21:58:04 +0300
committerJeff Johnston <jjohnstn@redhat.com>2023-07-17 22:05:35 +0300
commit661f9f9c5a1e6f8fa74d450ee8273d6d1f30c5b2 (patch)
tree158752103ff401cb9a74115775c0b0d97fdb1ec0 /newlib
parentfee0c04e30e31d9034276ecb70cc8dd82e33e761 (diff)
Change getlogin() to only check stdin being null
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/unix/getlogin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/newlib/libc/unix/getlogin.c b/newlib/libc/unix/getlogin.c
index da4f47a95..876ac32cd 100644
--- a/newlib/libc/unix/getlogin.c
+++ b/newlib/libc/unix/getlogin.c
@@ -17,8 +17,6 @@ getlogin ()
char *tty;
if (((tty = ttyname (0)) == 0)
- || ((tty = ttyname (1)) == 0)
- || ((tty = ttyname (2)) == 0))
return 0;
if ((utmp_fd = open (UTMP_FILE, O_RDONLY)) == -1)