diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-12-03 20:27:36 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-12-03 20:27:36 +0000 |
commit | 234ab16126aa0dcb16975af7512aefb3c99dbd6b (patch) | |
tree | 28416605b6b8cee7760c08db74861b64abfcbc78 /usr.bin/cvs | |
parent | 1505f224bfd97f15ad6d608f9394fc03cf7b07ed (diff) |
strip any trailing slashes in the received Directory
request, to make sure we are compatible with gnu;
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/req.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/req.c b/usr.bin/cvs/req.c index e57aa1fc10a..965982f7fa8 100644 --- a/usr.bin/cvs/req.c +++ b/usr.bin/cvs/req.c @@ -1,4 +1,4 @@ -/* $OpenBSD: req.c,v 1.32 2005/10/07 21:47:32 reyk Exp $ */ +/* $OpenBSD: req.c,v 1.33 2005/12/03 20:27:35 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -277,6 +277,8 @@ cvs_req_directory(int reqid, char *line) if (cvs_getln(NULL, rdir, sizeof(rdir)) < 0) return (-1); + STRIP_SLASH(rdir); + if (cvs_req_currentdir != NULL) free(cvs_req_currentdir); |