diff options
Diffstat (limited to 'src/input/libdvdnav')
| -rw-r--r-- | src/input/libdvdnav/dvd_input.c | 2 | ||||
| -rw-r--r-- | src/input/libdvdnav/vm.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/input/libdvdnav/dvd_input.c b/src/input/libdvdnav/dvd_input.c index 481f086a9..ae332257e 100644 --- a/src/input/libdvdnav/dvd_input.c +++ b/src/input/libdvdnav/dvd_input.c @@ -173,7 +173,7 @@ static dvd_input_t file_open(const char *target) /* Open the device */ #ifndef _MSC_VER - dev->fd = open(target, O_RDONLY); + dev->fd = open(target, O_RDONLY|O_EXCL); #else dev->fd = open(target, O_RDONLY | O_BINARY); #endif diff --git a/src/input/libdvdnav/vm.c b/src/input/libdvdnav/vm.c index 334e94523..fc8d9f570 100644 --- a/src/input/libdvdnav/vm.c +++ b/src/input/libdvdnav/vm.c @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: vm.c,v 1.25 2003/12/07 15:34:30 f1rmb Exp $ + * $Id: vm.c,v 1.26 2004/01/07 22:21:40 hadess Exp $ * */ @@ -141,7 +141,7 @@ static void dvd_read_name(char *name, const char *device) { uint8_t data[DVD_VIDEO_LB_LEN]; /* Read DVD name */ - fd=open(device, O_RDONLY); + fd=open(device, O_RDONLY|O_EXCL); if (fd > 0) { off = lseek64( fd, 32 * (int64_t) DVD_VIDEO_LB_LEN, SEEK_SET ); if( off == ( 32 * (int64_t) DVD_VIDEO_LB_LEN ) ) { |
