Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
util-linux-systemd.32955
util-linux-libblkid-cdrom-autoclose-3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-libblkid-cdrom-autoclose-3.patch of Package util-linux-systemd.32955
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(-) diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index 871cd9bf2..a8c2d3b4d 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -946,7 +946,7 @@ int blkid_probe_set_device(blkid_probe pr, int fd, 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; -- 2.28.0
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