projects
/
dss.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c32339
)
com_create: Abort if pre-create hook fails.
author
Andre Noll
<maan@systemlinux.org>
Tue, 7 Apr 2009 14:15:01 +0000
(16:15 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 7 Apr 2009 14:15:01 +0000
(16:15 +0200)
handle_pre_create_hook_exit() returns zero if the hook failed.
dss.c
patch
|
blob
|
history
diff --git
a/dss.c
b/dss.c
index 2a18857ecd1f3db9f12a698710385f415be8b53b..3bfcfe77b62abbd898d6bc6c8f09148ba5e5c564 100644
(file)
--- a/
dss.c
+++ b/
dss.c
@@
-983,7
+983,7
@@
static int com_create(void)
if (ret < 0)
return ret;
ret = handle_pre_create_hook_exit(status);
- if (ret <
0)
+ if (ret <
= 0) /* error, or pre-create failed */
return ret;
}
create_rsync_argv(&rsync_argv, ¤t_snapshot_creation_time);