diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-04-13 14:49:06 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-04-13 14:49:06 +0000 |
commit | c3cee71c773742361decfd3d90624e97c8391bbf (patch) | |
tree | d295bb89539f4af19c3927b8f1cffe553b1cc21d | |
parent | 3077c5ad3e7035e2c8cacccd14fe35d97396e93a (diff) |
cmd_helper() returns error codes > 0 or 0 on success.
-rw-r--r-- | usr.bin/cvs/cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/cmd.c b/usr.bin/cvs/cmd.c index f988c0a7919..470ad116be1 100644 --- a/usr.bin/cvs/cmd.c +++ b/usr.bin/cvs/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.11 2005/04/12 17:20:01 joris Exp $ */ +/* $OpenBSD: cmd.c,v 1.12 2005/04/13 14:49:05 joris Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -74,7 +74,7 @@ cvs_startcmd(struct cvs_cmd *cmd, int argc, char **argv) if (cvs_files == NULL) return (CVS_EX_DATA); - if ((c->cmd_helper != NULL) && ((ret = c->cmd_helper()) < 0)) + if ((c->cmd_helper != NULL) && ((ret = c->cmd_helper()) != 0)) return (ret); root = CVS_DIR_ROOT(cvs_files); |