From: Andre Noll Date: Tue, 1 Apr 2008 21:26:22 +0000 (+0200) Subject: Fix com_stat() for arguments greater than one. X-Git-Tag: v0.3.2~23 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=190eec54bed8fe79e0ccd72614b253d591e76b4f;p=paraslash.git Fix com_stat() for arguments greater than one. It behaved like it was given a non-positive arg in this case. --- diff --git a/command.c b/command.c index 458faf88..4eab9f65 100644 --- 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)