added support for the XFERCOMMAND option
This commit is contained in:
parent
1ace50e2a8
commit
4744a2a764
1 changed files with 6 additions and 3 deletions
|
@ -38,6 +38,7 @@ extern char *pmo_dbpath;
|
||||||
extern list_t *pmo_holdpkg;
|
extern list_t *pmo_holdpkg;
|
||||||
extern char *pmo_proxyhost;
|
extern char *pmo_proxyhost;
|
||||||
extern unsigned short pmo_proxyport;
|
extern unsigned short pmo_proxyport;
|
||||||
|
extern char *pmo_xfercommand;
|
||||||
extern unsigned short pmo_nopassiveftp;
|
extern unsigned short pmo_nopassiveftp;
|
||||||
|
|
||||||
extern list_t *pmc_syncs;
|
extern list_t *pmc_syncs;
|
||||||
|
@ -190,9 +191,7 @@ int parseconfig(char *file)
|
||||||
if(*ptr == '/') {
|
if(*ptr == '/') {
|
||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
if(pmo_dbpath) {
|
|
||||||
FREE(pmo_dbpath);
|
FREE(pmo_dbpath);
|
||||||
}
|
|
||||||
pmo_dbpath = strdup(ptr);
|
pmo_dbpath = strdup(ptr);
|
||||||
vprint("config: dbpath: %s\n", ptr);
|
vprint("config: dbpath: %s\n", ptr);
|
||||||
} else if (!strcmp(key, "LOGFILE")) {
|
} else if (!strcmp(key, "LOGFILE")) {
|
||||||
|
@ -201,6 +200,10 @@ int parseconfig(char *file)
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
vprint("config: log file: %s\n", ptr);
|
vprint("config: log file: %s\n", ptr);
|
||||||
|
} else if (!strcmp(key, "XFERCOMMAND")) {
|
||||||
|
FREE(pmo_xfercommand);
|
||||||
|
pmo_xfercommand = strndup(ptr, PATH_MAX);
|
||||||
|
vprint("config: xfercommand: %s\n", pmo_xfercommand);
|
||||||
} else if (!strcmp(key, "PROXYSERVER")) {
|
} else if (!strcmp(key, "PROXYSERVER")) {
|
||||||
char *p;
|
char *p;
|
||||||
if(pmo_proxyhost) {
|
if(pmo_proxyhost) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue