chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7358dc0
)
snapshot: return error when snapshot exists
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 28 Oct 2014 16:36:17 +0000
(12:36 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 31 Oct 2014 00:38:33 +0000
(20:38 -0400)
src/core/snapshot.c
patch
|
blob
|
history
diff --git
a/src/core/snapshot.c
b/src/core/snapshot.c
index 5eed615a150deee677304f7bc9afa15f1ab941ef..c2678cbe6e9fda13eec8bd0ad6ae5a3366c7cdfa 100644
(file)
--- a/
src/core/snapshot.c
+++ b/
src/core/snapshot.c
@@
-208,7
+208,7
@@
int snapshot_create(Manager *m, const char *name, bool cleanup, sd_bus_error *e,
return sd_bus_error_setf(e, SD_BUS_ERROR_INVALID_ARGS, "Unit name %s lacks snapshot suffix.", name);
if (manager_get_unit(m, name))
- sd_bus_error_setf(e, BUS_ERROR_UNIT_EXISTS, "Snapshot %s exists already.", name);
+
return
sd_bus_error_setf(e, BUS_ERROR_UNIT_EXISTS, "Snapshot %s exists already.", name);
} else {