summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-05-24 20:04:43 +0000
committerjoris <joris@openbsd.org>2005-05-24 20:04:43 +0000
commit50b634f91d50519423f401f9c65925730bf55428 (patch)
treee87712b8e93fdf75e20a58cd0c620ee1f54f6632 /usr.bin/cvs/file.c
parentno more telnetd, ba@bsws.de (diff)
downloadwireguard-openbsd-50b634f91d50519423f401f9c65925730bf55428.tar.xz
wireguard-openbsd-50b634f91d50519423f401f9c65925730bf55428.zip
- simplify cvs_mkadmin().
- create the correct base paths in checkout. - remove the CVS_CMD_SENDARGS2 flag for checkout, it doesn't need it. okay jfb@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index ae5d78294dd..f109e3fb599 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.77 2005/05/24 04:12:25 jfb Exp $ */
+/* $OpenBSD: file.c,v 1.78 2005/05/24 20:04:43 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -269,7 +269,8 @@ cvs_file_create(CVSFILE *parent, const char *path, u_int type, mode_t mode)
return (NULL);
}
- if ((mkdir(path, mode) == -1) || (cvs_mkadmin(cfp, mode) < 0)) {
+ if ((mkdir(path, mode) == -1) ||
+ (cvs_mkadmin(path, cfp->cf_root->cr_str, cfp->cf_repo) < 0)) {
cvs_file_free(cfp);
return (NULL);
}
@@ -574,7 +575,7 @@ cvs_load_dirinfo(CVSFILE *cf, int flags)
return (-1);
if (flags & CF_MKADMIN)
- cvs_mkadmin(cf, 0755);
+ cvs_mkadmin(fpath, cf->cf_root->cr_str, NULL);
/* if the CVS administrative directory exists, load the info */
l = snprintf(pbuf, sizeof(pbuf), "%s/" CVS_PATH_CVSDIR, fpath);