[Pkg-wmaker-commits] [wmrack] 03/97: use the proper mode when opening the cd device
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Aug 22 02:41:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmrack.
commit d95c532963371f00a5c18bde954262da10f3df8c
Author: Chris Waters <xtifr.w at gmail.com>
Date: Thu Mar 8 16:39:37 2012 -0800
use the proper mode when opening the cd device
---
cdrom.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cdrom.c b/cdrom.c
index c3ca76c..996bad5 100644
--- a/cdrom.c
+++ b/cdrom.c
@@ -1,5 +1,5 @@
/*
- * $Id: cdrom.c,v 1.1.1.1 2001/02/12 22:25:42 xtifr Exp $
+ * $Id: cdrom.c,v 1.2 2001/02/14 10:23:35 xtifr Exp $
*
* cdrom utility functions for WMRack
*
@@ -283,7 +283,7 @@ int cd_reopen(CD *cd)
if (cd==NULL)
return 1;
- if ((cd->fd=open(cd->device,0))<0)
+ if ((cd->fd=open(cd->device,O_RDONLY|O_NONBLOCK))<0)
{
perror("cd_reopen[open]");
return 1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmrack.git
More information about the Pkg-wmaker-commits
mailing list