summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
authorSami Kerola2012-07-08 23:20:04 +0200
committerKarel Zak2012-07-10 11:01:29 +0200
commit5ec1ad13481bb0cd60ba1985a49936646730ae07 (patch)
tree42e80bb2cebacece1dd81849be98f3b4c8577790 /login-utils
parentutmpdump: use inotify to when following file (diff)
downloadkernel-qcow2-util-linux-5ec1ad13481bb0cd60ba1985a49936646730ae07.tar.gz
kernel-qcow2-util-linux-5ec1ad13481bb0cd60ba1985a49936646730ae07.tar.xz
kernel-qcow2-util-linux-5ec1ad13481bb0cd60ba1985a49936646730ae07.zip
utmpdump: encourage users not to follow stdin
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/utmpdump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/login-utils/utmpdump.c b/login-utils/utmpdump.c
index 3f20f2dd3..a61dfa1a5 100644
--- a/login-utils/utmpdump.c
+++ b/login-utils/utmpdump.c
@@ -339,7 +339,9 @@ int main(int argc, char **argv)
if (!fp)
err(EXIT_FAILURE, _("%s: open failed"), filename);
} else {
- filename = "stdin";
+ filename = "/dev/stdin";
+ if (forever)
+ warnx(_("warning: following standard input indefinitely is ineffective"));
fp = stdin;
}