version 1.18, 2005/07/19 15:30:37 |
version 1.19, 2005/07/25 12:05:43 |
|
|
#include "proto.h" |
#include "proto.h" |
|
|
|
|
#define CFT_FILE 1 |
#define CFT_FILE 1 |
#define CFT_DIR 2 |
#define CFT_DIR 2 |
|
|
|
|
struct cvsroot_file { |
struct cvsroot_file { |
char *cf_path; /* path relative to CVS root directory */ |
char *cf_path; /* path relative to CVS root directory */ |
u_int cf_type; |
u_int cf_type; |
mode_t cf_mode; |
mode_t cf_mode; |
} cvsroot_files[] = { |
} cvsroot_files[] = { |
{ CVS_PATH_ROOT, CFT_DIR, (S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) }, |
{ CVS_PATH_ROOT, CFT_DIR, (S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) }, |
{ CVS_PATH_EMPTYDIR, CFT_DIR, (S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) }, |
{ CVS_PATH_EMPTYDIR, CFT_DIR, (S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) }, |
|
|
{ CVS_PATH_VERIFYMSG, CFT_FILE, (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) }, |
{ CVS_PATH_VERIFYMSG, CFT_FILE, (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) }, |
}; |
}; |
|
|
static int cvs_init_pre_exec (struct cvsroot *); |
static int cvs_init_pre_exec(struct cvsroot *); |
static int cvs_init_create_files (struct cvsroot *); |
static int cvs_init_create_files(struct cvsroot *); |
|
|
struct cvs_cmd cvs_cmd_init = { |
struct cvs_cmd cvs_cmd_init = { |
CVS_OP_INIT, CVS_REQ_INIT, "init", |
CVS_OP_INIT, CVS_REQ_INIT, "init", |