projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6513cf
)
scriptreplay: show help text if run with no arguments
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 19 Jul 2009 21:11:45 +0000
(23:11 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 19 Jul 2009 21:11:45 +0000
(23:11 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/scriptreplay.c
patch
|
blob
|
history
diff --git
a/util-linux/scriptreplay.c
b/util-linux/scriptreplay.c
index 6474d38e89c9e8bc755f413bd187fb4cc5e1d170..d7e19330359753f4bdb86cefa03f1e79f061dce1 100644
(file)
--- a/
util-linux/scriptreplay.c
+++ b/
util-linux/scriptreplay.c
@@
-18,6
+18,9
@@
int scriptreplay_main(int argc UNUSED_PARAM, char **argv)
unsigned long count;
FILE *tfp;
+ if (!argv[1])
+ bb_show_usage();
+
if (argv[2]) {
script = argv[2];
if (argv[3])