projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44956bb
)
(scan_entries): 0 -> STDIN_FILENO.
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 3 Aug 2004 23:38:21 +0000
(23:38 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 3 Aug 2004 23:38:21 +0000
(23:38 +0000)
src/who.c
patch
|
blob
|
history
diff --git
a/src/who.c
b/src/who.c
index
b89f655
..
96524ce
100644
(file)
--- a/
src/who.c
+++ b/
src/who.c
@@
-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)