summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-06-07 08:19:08 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-06-07 08:19:08 +0000
commit694bfeb32dc7c5baa40f2e5bac2c5934947af12d (patch)
treeed69c990fa9277b890cfcb359cafbda17b2c03bd /usr.bin
parent9dc111a7a22f4eaf193e3e7260f2bcd5cba7ec72 (diff)
cvs_path_cat() already sets errno, no need to duplicate.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/entries.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c
index 2c93ffa7490..b1f7f5902cf 100644
--- a/usr.bin/cvs/entries.c
+++ b/usr.bin/cvs/entries.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entries.c,v 1.36 2005/06/07 07:23:41 xsa Exp $ */
+/* $OpenBSD: entries.c,v 1.37 2005/06/07 08:19:07 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -71,11 +71,9 @@ cvs_ent_open(const char *dir, int flags)
* update or checkout of a module.
*/
len = cvs_path_cat(dir, CVS_PATH_CVSDIR, cdpath, sizeof(cdpath));
- if (len >= sizeof(cdpath)) {
- errno = ENAMETOOLONG;
- cvs_log(LP_ERRNO, "%s", cdpath);
+ if (len >= sizeof(cdpath))
return (NULL);
- }
+
if ((stat(cdpath, &st) == 0) && S_ISDIR(st.st_mode))
nodir = 0; /* the CVS/ directory does exist */