Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:Test
multipath-tools
multipath-tools-increase-loop-buffer-size
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File multipath-tools-increase-loop-buffer-size of Package multipath-tools
From 18903014d3e6402909e709fedaf669d2a55c1490 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Tue, 21 Oct 2008 10:22:16 +0200 Subject: [PATCH] Increase buffer size in find_loop_by_file() find_loop_by_file() uses an internal buffer of 20 chars, which is compared to a buffer of the size of 64 chars. Not good. References: 436428 Signed-off-by: Hannes Reinecke <hare@suse.de> --- kpartx/lopart.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kpartx/lopart.c b/kpartx/lopart.c index b18d6fa..be483da 100644 --- a/kpartx/lopart.c +++ b/kpartx/lopart.c @@ -105,7 +105,7 @@ is_loop_device (const char *device) extern char * find_loop_by_file (const char * filename) { - char dev[20]; + char dev[64]; char *loop_formats[] = { "/dev/loop%d", "/dev/loop/%d" }; int i, j, fd; struct stat statbuf; -- 1.5.2.4
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