Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
python-libmount.25243
util-linux-libblkid-cdrom-autoclose-3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-libblkid-cdrom-autoclose-3.patch of Package python-libmount.25243
From e72eea70c452cf1b820aae4b942e82ab5e0e7326 Mon Sep 17 00:00:00 2001 From: Karel Zak <kzak@redhat.com> Date: Wed, 8 Jan 2020 09:23:04 +0100 Subject: [PATCH] libblkid: check status for the current CDROM slot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's probably more safer. Reported-by: Michal Suchánek <msuchanek@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com> --- libblkid/src/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: util-linux-2.28/libblkid/src/probe.c =================================================================== --- util-linux-2.28.orig/libblkid/src/probe.c +++ util-linux-2.28/libblkid/src/probe.c @@ -849,7 +849,7 @@ int blkid_probe_set_device(blkid_probe p blkid_probe_is_wholedisk(pr) && ioctl(fd, CDROM_GET_CAPABILITY, NULL) >= 0) { # ifdef CDROM_DRIVE_STATUS - switch (ioctl(fd, CDROM_DRIVE_STATUS, 0)) { + switch (ioctl(fd, CDROM_DRIVE_STATUS, CDSL_CURRENT)) { case CDS_TRAY_OPEN: case CDS_NO_DISC: errno = ENOMEDIUM;
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