changeset 7:ad83a38c3f5a

Don't open RW - not necessary.
author darius
date Thu, 18 Jul 2002 06:29:35 +0000
parents f5daa3cdeb58
children 2c01c09bdc0f
files cddb-id.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cddb-id.c	Sat Aug 12 07:12:12 2000 +0000
+++ b/cddb-id.c	Thu Jul 18 06:29:35 2002 +0000
@@ -57,7 +57,7 @@
 	}
     }
     
-    if ((cd_fd = open(cd_path, O_RDWR)) == -1) {
+    if ((cd_fd = open(cd_path, O_RDONLY)) == -1) {
 	warnx("Failed to open %s, reason: %s", cd_path, strerror(errno));
 	exit(EX_IOERR);
     }