diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2008-02-10 14:15:37 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2008-02-10 14:15:37 +0000 |
commit | 179598a4bbdef639894bfd6c3fe39bc03606517c (patch) | |
tree | 979dcec2401e2e5a71aff7f88c0104aeb31d00ac /usr.bin/cvs | |
parent | 0bc1f21c7869053221ffcf1177a12e1fa49967ca (diff) |
cvs_validate_directory() was too paranoia
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/remote.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/cvs/remote.c b/usr.bin/cvs/remote.c index 2623ab4c3df..0b325ca2e52 100644 --- a/usr.bin/cvs/remote.c +++ b/usr.bin/cvs/remote.c @@ -1,4 +1,4 @@ -/* $OpenBSD: remote.c,v 1.19 2008/02/10 14:04:40 joris Exp $ */ +/* $OpenBSD: remote.c,v 1.20 2008/02/10 14:15:36 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -251,10 +251,8 @@ cvs_validate_directory(const char *path) { char *dir, *sp, *dp; - if (cvs_server_active == 1 && path[0] == '/') - fatal("No absolute directories allowed, go away."); - dir = xstrdup(path); + for (sp = dir; sp != NULL; sp = dp) { dp = strchr(sp, '/'); if (dp != NULL) |