diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-08-14 23:24:56 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-08-14 23:24:56 +0000 |
commit | abd9dde76b4d9135d096a1e999126287f939d92b (patch) | |
tree | 59ed73cab01954b884a7e6b7b634d3715a004aec /usr.bin | |
parent | d23a8f352fcd67e73c18a31a088bf28ac805546e (diff) |
we do not want '.' to show up in the entries file, because it
causes opencvs to crash.
reported by Mike Pechkin
ok xsa@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/resp.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/cvs/resp.c b/usr.bin/cvs/resp.c index 674fb7eabb2..36f2c6ea67a 100644 --- a/usr.bin/cvs/resp.c +++ b/usr.bin/cvs/resp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resp.c,v 1.53 2005/08/02 12:08:13 joris Exp $ */ +/* $OpenBSD: resp.c,v 1.54 2005/08/14 23:24:55 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -427,6 +427,14 @@ cvs_resp_createdir(char *line) entf = NULL; cf = NULL; + + /* + * we do not want to handle the '.' case, + * so return early. + */ + if (!strcmp(line, ".")) + return (0); + cvs_splitpath(line, subdir, sizeof(subdir), &file); base = cvs_file_loadinfo(subdir, CF_NOFILES, NULL, NULL, 1); if (base == NULL) |