mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 19:21:53 +03:00
snapshot: return error when snapshot exists
This commit is contained in:
parent
7358dc029a
commit
7cabba0774
Notes:
Lennart Poettering
2014-11-04 18:29:43 +01:00
Backport: bugfix
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user