diff options
author | 2005-06-02 20:19:30 +0000 | |
---|---|---|
committer | 2005-06-02 20:19:30 +0000 | |
commit | 6d021486f60dc233fb1487216b9872b3070426f5 (patch) | |
tree | dff80dfa703e7a44768cac79b04916e0b8df0499 /usr.bin/cvs/entries.c | |
parent | make cvs_printf() a bit smarter, so it can be called without having (diff) | |
download | wireguard-openbsd-6d021486f60dc233fb1487216b9872b3070426f5.tar.xz wireguard-openbsd-6d021486f60dc233fb1487216b9872b3070426f5.zip |
remove unneeded error reporting when using cvs_path_cat(), the
function does it for us.
OK jfb@
Diffstat (limited to 'usr.bin/cvs/entries.c')
-rw-r--r-- | usr.bin/cvs/entries.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c index 39a90bceb99..4ad91495a61 100644 --- a/usr.bin/cvs/entries.c +++ b/usr.bin/cvs/entries.c @@ -1,4 +1,4 @@ -/* $OpenBSD: entries.c,v 1.34 2005/05/31 08:58:47 xsa Exp $ */ +/* $OpenBSD: entries.c,v 1.35 2005/06/02 20:19:30 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -64,11 +64,8 @@ cvs_ent_open(const char *dir, int flags) memset(mode, 0, sizeof(mode)); len = cvs_path_cat(dir, CVS_PATH_ENTRIES, entpath, sizeof(entpath)); - if (len >= sizeof(entpath)) { - errno = ENAMETOOLONG; - cvs_log(LP_ERRNO, "%s", entpath); + if (len >= sizeof(entpath)) return (NULL); - } switch (flags & O_ACCMODE) { case O_WRONLY: |