Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
mdadm.5365
0081-Manage-fix-no-op-test-in-Manage_stop.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0081-Manage-fix-no-op-test-in-Manage_stop.patch of Package mdadm.5365
From 52b6ccad34b1a6c974198f4b90b7ca15089b546d Mon Sep 17 00:00:00 2001 From: NeilBrown <neilb@suse.de> Date: Thu, 2 Jul 2015 08:16:59 +1000 Subject: [PATCH 115/359] Manage: fix no-op test in Manage_stop. References: bsc#1081910 A 'devnm' never starts with '/', so this test is pointless. The code should use the passed-in devname unless it is clearly not usable. So fix it to do that. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Coly Li <colyli@suse.de> --- Manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Manage.c b/Manage.c index 4958cf8..17d66de 100644 --- a/Manage.c +++ b/Manage.c @@ -235,7 +235,7 @@ int Manage_stop(char *devname, int fd, int verbose, int will_retry) container[0] = 0; close(fd); count = 5; - while (((fd = ((devnm[0] == '/') + while (((fd = ((devname[0] == '/') ?open(devname, O_RDONLY|O_EXCL) :open_dev_flags(devnm, O_RDONLY|O_EXCL))) < 0 || strcmp(fd2devnm(fd), devnm) != 0) -- 2.16.1
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