Subversion Repositories RepoView

Rev

Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 20
Line 1... Line 1...
1
/* $Id: repo.c 16 2024-08-21 15:39:47Z nishi $ */
1
/* $Id: repo.c 20 2024-08-21 16:13:13Z nishi $ */
2
 
2
 
3
#include "rv_repo.h"
3
#include "rv_repo.h"
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 89... Line 89...
89
	char* user = rv_strdup(repouser);
89
	char* user = rv_strdup(repouser);
90
	int i;
90
	int i;
91
	for(i = 0; user[i] != 0; i++) {
91
	for(i = 0; user[i] != 0; i++) {
92
		if(user[i] == REPO_USER_DELIM) {
92
		if(user[i] == REPO_USER_DELIM) {
93
			user[i] = 0;
93
			user[i] = 0;
-
 
94
			char* tmp = user;
-
 
95
			user = rv_strdup(user + i + 1);
-
 
96
			free(tmp);
94
			break;
97
			break;
95
		}
98
		}
96
	}
99
	}
97
	char* path = rv_strcat3(SVN_ROOT, "/", repouser);
100
	char* path = rv_strcat3(SVN_ROOT, "/", repouser);
98
	char* cmd[] = {"svnadmin", "create", path, NULL};
101
	char* cmd[] = {"svnadmin", "create", path, NULL};