diff options
author | 2005-05-20 20:00:53 +0000 | |
---|---|---|
committer | 2005-05-20 20:00:53 +0000 | |
commit | 01b3d77a461dd72becb18975e26dff5a152b506b (patch) | |
tree | feacd7baf6933419b5626e2885063444b9ba9011 /usr.bin/cvs/diff.c | |
parent | cvs_noexec checks; jfb ok (diff) | |
download | wireguard-openbsd-01b3d77a461dd72becb18975e26dff5a152b506b.tar.xz wireguard-openbsd-01b3d77a461dd72becb18975e26dff5a152b506b.zip |
correct wrong error code usage.
ok jfb@, xsa@
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r-- | usr.bin/cvs/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index 29f013c0c3b..a1b7e76af9f 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.33 2005/04/25 19:09:15 jfb Exp $ */ +/* $OpenBSD: diff.c,v 1.34 2005/05/20 20:00:53 joris Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. @@ -564,7 +564,7 @@ cvs_diff_file(struct cvs_file *cfp, void *arg) if (l == -1 || l >= (int)sizeof(rcspath)) { errno = ENAMETOOLONG; cvs_log(LP_ERRNO, "%s", rcspath); - return (-1); + return (CVS_EX_DATA); } rf = rcs_open(rcspath, RCS_READ); |