commit 1e0b661d09c5a4bbb0bb2061db8071363145d5ac
Author: Oswald Buddenhagen <[email protected]>
Date: Tue Jan 28 00:49:17 2025 +0100
fix --dry-run without --debug-driver
the stubbing is implemented by the proxy driver, so we need to hook it
in in that case as well. the driver is already prepared for that, as
it's also used to implement -Ta/-TA.
src/main_sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main_sync.c b/src/main_sync.c
index 2ea4a92..f4ec34b 100644
--- a/src/main_sync.c
+++ b/src/main_sync.c
@@ -450,7 +450,7 @@ do_sync_chans( main_vars_t *mvars )
labels[F] = labels[N] = "";
for (int t = 0; t < 2; t++) {
store_t *ctx = mvars->drv[t]->alloc_store(
mvars->chan->stores[t], labels[t] );
- if ((DFlags & DEBUG_DRV) || ((DFlags & FORCEASYNC(t))
&& !(dcaps[t] & DRV_ASYNC))) {
+ if ((DFlags & (DEBUG_DRV | DRYRUN)) || ((DFlags &
FORCEASYNC(t)) && !(dcaps[t] & DRV_ASYNC))) {
mvars->drv[t] = &proxy_driver;
ctx = proxy_alloc_store( ctx, labels[t], DFlags
& FORCEASYNC(t) );
}
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel