mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-09-21 11:39:02 +00:00
dryruns
This commit is contained in:
parent
d15d3c24fd
commit
89164e2ab0
18
lsyncd.c
18
lsyncd.c
@ -746,22 +746,6 @@ bool append_tosync_watch(int watch) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Removes a tosync entry in the stack at the position p.
|
||||
*/
|
||||
//bool remove_tosync_pos(int p) {
|
||||
// int i;
|
||||
// assert(p < tosync_pos);
|
||||
//
|
||||
// //TODO improve performance by using memcpy.
|
||||
// for(i = p; i < tosync_pos; i++) {
|
||||
// tosync[i] = tosync[i + 1];
|
||||
// }
|
||||
// tosync_pos--;
|
||||
// return true;
|
||||
//}
|
||||
|
||||
/**
|
||||
* Parses an option text, replacing all '%' specifiers with
|
||||
* elaborated stuff. duh, currently there is only one, so this
|
||||
@ -817,6 +801,7 @@ bool action(struct dir_conf * dir_conf,
|
||||
int status;
|
||||
const int MAX_ARGS = 100;
|
||||
char * argv[MAX_ARGS];
|
||||
char * dryargs;
|
||||
int argc = 0;
|
||||
int i;
|
||||
struct call_option* optp;
|
||||
@ -862,6 +847,7 @@ bool action(struct dir_conf * dir_conf,
|
||||
//}
|
||||
|
||||
if (flag_dryrun) {
|
||||
// TODO memfree, debug message
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user