diff options
| author | Bastien Nocera <hadess@users.sourceforge.net> | 2004-01-07 22:21:40 +0000 |
|---|---|---|
| committer | Bastien Nocera <hadess@users.sourceforge.net> | 2004-01-07 22:21:40 +0000 |
| commit | ffc98f0d9de67cb1447cbc5501ad2293d65d6d40 (patch) | |
| tree | 960551477e6b9ac3a8b386880c703230f17b8874 /src/input/libdvdnav/dvd_input.c | |
| parent | c7dc2203f2da402c1999e10c99f174b44a6186cd (diff) | |
| download | xine-lib-ffc98f0d9de67cb1447cbc5501ad2293d65d6d40.tar.gz xine-lib-ffc98f0d9de67cb1447cbc5501ad2293d65d6d40.tar.bz2 | |
- use O_EXCL when opening the CD device so that we're sure no other application
will try and touch it
CVS patchset: 6009
CVS date: 2004/01/07 22:21:40
Diffstat (limited to 'src/input/libdvdnav/dvd_input.c')
| -rw-r--r-- | src/input/libdvdnav/dvd_input.c | 2 |
1 files changed, 1 insertions, 1 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 |
