Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
iprutils
iprutils-close.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iprutils-close.diff of Package iprutils
Index: iprutils/iprlib.c =================================================================== --- iprutils.orig/iprlib.c +++ iprutils/iprlib.c @@ -8407,15 +8407,16 @@ int ipr_update_ioa_fw(struct ipr_ioa *io } dir = opendir(hotplug_dir); - if (!dir) + if (!dir) { mkdir(hotplug_dir, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); - dir = opendir(hotplug_dir); - if (!dir) { - syslog(LOG_ERR, "Failed to open %s. %m\n", hotplug_dir); - munmap(image_hdr, ucode_stats.st_size); - close(fd); - return -EIO; + dir = opendir(hotplug_dir); + if (!dir) { + syslog(LOG_ERR, "Failed to open %s. %m\n", hotplug_dir); + munmap(image_hdr, ucode_stats.st_size); + close(fd); + return -EIO; + } } closedir(dir); sprintf(ucode_file, "%s/.%s", hotplug_dir, tmp);
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