projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix com_stat() for arguments greater than one.
[paraslash.git]
/
command.c
diff --git
a/command.c
b/command.c
index 458faf884d4b441313b02ced6e137aaca425e933..4eab9f65348990e5f4f95568623f032376a43b4e 100644
(file)
--- a/
command.c
+++ b/
command.c
@@
-335,7
+335,7
@@
int com_stat(int fd, int argc, char * const * argv)
if (ret < 0)
goto out;
ret = 1;
- if (num
== 1
)
+ if (num
> 0 && !--num
)
goto out;
sleep(50);
if (getppid() == 1)