Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
systemd.1059
0002-snapshot-return-error-when-snapshot-exists...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-snapshot-return-error-when-snapshot-exists.patch of Package systemd.1059
From 7cabba07745b388497e8c0fc19b61984167fd474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> Date: Tue, 28 Oct 2014 12:36:17 -0400 Subject: [PATCH] snapshot: return error when snapshot exists --- src/core/snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git src/core/snapshot.c src/core/snapshot.c index 5eed615..c2678cb 100644 --- src/core/snapshot.c +++ 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 { -- 1.7.9.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor