diff cddb-id.c @ 7:ad83a38c3f5a

Don't open RW - not necessary.
author darius
date Thu, 18 Jul 2002 06:29:35 +0000
parents 74031379d3cb
children
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);
     }