# HG changeset patch # User darius # Date 1026973775 0 # Node ID ad83a38c3f5ac7db63766df1c5297ea9ebcf6fff # Parent f5daa3cdeb58663e98d7d8ed91d781c61e4614f3 Don't open RW - not necessary. diff -r f5daa3cdeb58 -r ad83a38c3f5a cddb-id.c --- 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); }