X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=4eab9f65348990e5f4f95568623f032376a43b4e;hp=995dc4a0b7acb74e2d3a06cada6984a1d8113099;hb=93ea9f34dcb35755568e6c94f9b9445fd4d1984a;hpb=2abba90245f87fab096edfc3faf7df61646b713f diff --git a/command.c b/command.c index 995dc4a0..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) @@ -578,7 +578,7 @@ out: */ static int check_perms(unsigned int perms, struct server_command *cmd_ptr) { - PARA_DEBUG_LOG("%s", "checking permissions\n"); + PARA_DEBUG_LOG("checking permissions\n"); return (cmd_ptr->perms & perms) < cmd_ptr->perms ? -E_PERM : 0; }