File udftools-open.patch of Package udftools

--- pktsetup/pktsetup.c.orig	2008-01-12 14:27:46.000000000 +0100
+++ pktsetup/pktsetup.c	2008-01-12 14:28:13.000000000 +0100
@@ -87,7 +87,7 @@ static void setup_dev(char *pkt_device, 
 {
 	int pkt_fd, dev_fd, cmd;
 
-	if ((pkt_fd = open(pkt_device, O_RDONLY | O_CREAT)) == -1) {
+	if ((pkt_fd = open(pkt_device, O_RDONLY)) == -1) {
 		perror("open packet device");
 		return;
 	}
openSUSE Build Service is sponsored by