summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-09-15 22:12:23 +0000
committerjoris <joris@openbsd.org>2005-09-15 22:12:23 +0000
commit869a71f2fe9d365fa66616e69703fb6e13047594 (patch)
treeaf3dc08f0129c653bbdeb6510099cba11e51ee55 /usr.bin/cvs/file.c
parentRemove the (unused) syscall() indirection on arm. (diff)
downloadwireguard-openbsd-869a71f2fe9d365fa66616e69703fb6e13047594.tar.xz
wireguard-openbsd-869a71f2fe9d365fa66616e69703fb6e13047594.zip
strip trailing slashes from any arguments passed to opencvs.
ok xsa@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index be13bde9774..510eb88ed76 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.122 2005/09/15 17:01:10 xsa Exp $ */
+/* $OpenBSD: file.c,v 1.123 2005/09/15 22:12:23 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -441,6 +441,11 @@ cvs_file_getspec(char **fspec, int fsn, int flags, int (*cb)(CVSFILE *, void *),
strlcpy(pcopy, fspec[i], sizeof(pcopy));
/*
+ * get rid of any trailing slashes.
+ */
+ STRIP_SLASH(pcopy);
+
+ /*
* Load the information.
*/
cf = cvs_file_loadinfo(pcopy, flags, cb, arg, freecf);