diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 23:38:21 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 23:38:21 +0000 |
commit | 7512995b22c0a0caa3a0e5a1f0ea1a3b29316179 (patch) | |
tree | af0812601d04d39477aea7a08e1c789cb963cfba /src | |
parent | 44956bb6b02214f2c31779217786deb85b4918ed (diff) | |
download | coreutils-7512995b22c0a0caa3a0e5a1f0ea1a3b29316179.tar.xz |
(scan_entries): 0 -> STDIN_FILENO.
Diffstat (limited to 'src')
-rw-r--r-- | src/who.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -577,7 +577,7 @@ scan_entries (size_t n, const STRUCT_UTMP *utmp_buf) if (my_line_only) { - ttyname_b = ttyname (0); + ttyname_b = ttyname (STDIN_FILENO); if (!ttyname_b) return; if (strncmp (ttyname_b, DEV_DIR_WITH_TRAILING_SLASH, DEV_DIR_LEN) == 0) |