blob: 1939efa599d4c426d4ed6a5362afee4284e5f92c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-aj,v 1.1 2009/12/09 19:01:06 drochner Exp $
--- libbrasero-media/scsi-netbsd.c.orig 2009-10-21 23:47:35.000000000 +0200
+++ libbrasero-media/scsi-netbsd.c
@@ -164,14 +164,11 @@ brasero_device_handle_open (const gchar
int fd;
int flags = OPEN_FLAGS;
BraseroDeviceHandle *handle;
- gchar *rdevnode;
if (exclusive)
flags |= O_EXCL;
- rdevnode = g_strdup_printf ("/dev/r%s", path + strlen ("/dev/"));
- fd = open (rdevnode, flags);
- g_free (rdevnode);
+ fd = open (path, flags);
if (fd < 0) {
if (code) {
if (errno == EAGAIN
|