projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a64e35b
)
Fix head bug pointed out by felix janda (recent -123 code broke first file argument...
author
Rob Landley
<rob@landley.net>
Sun, 29 Mar 2015 17:01:30 +0000
(12:01 -0500)
committer
Rob Landley
<rob@landley.net>
Sun, 29 Mar 2015 17:01:30 +0000
(12:01 -0500)
toys/posix/head.c
patch
|
blob
|
history
diff --git
a/toys/posix/head.c
b/toys/posix/head.c
index
42f945b
..
9312528
100644
(file)
--- a/
toys/posix/head.c
+++ b/
toys/posix/head.c
@@
-56,6
+56,6
@@
void head_main(void)
if (arg && *arg == '-' && arg[1]) {
TT.lines = atolx(arg+1);
toys.optc--;
- }
+ }
else arg = 0;
loopfiles(toys.optargs+!!arg, do_head);
}