Package: polyglot Version: 1.4-1 Severity: normal Hi,
seems that polyglot doesn't let me open an opening book for which I don't have write permissions. When I try to open the engine "fruit" with its opening book located in /usr/share/games/fruit/book_small.bin, polyglot answers: book_open(): can't open file "/usr/share/games/fruit/book_small.bin": Permission denied and quits. Copying the book in a writable directory and adding write permissions solves the issue. On investigating the source, I found that polyglot actually tries to open the book in update mode; file "book.cpp" contains: BookFile = fopen(file_name,"rb+"); but I don't really know if it's necessary to do so, or if it's enough to open the file read-only in any case. You'll understand that the aforementioned workaround isn't always viable, or at least not much of a practical value in some situations. I'll be grateful for any light you could spread on the case. Kindly yours, Gabriele :-) P.S.: added Fabian in Cc: as upstream author, please keep both recipients in your answer :-) -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: LC_ALL set to [EMAIL PROTECTED]) Versions of packages polyglot depends on: ii libc6 2.3.6-7 GNU C Library: Shared libraries ii libgcc1 1:4.1.0-4 GCC support library ii libstdc++6 4.1.0-4 The GNU Standard C++ Library v3 Versions of packages polyglot recommends: ii fruit 2.1-2 chess engine, to calculate chess m -- no debconf information -- http://poisson.phc.unipi.it/~stilli/ ICQ UIN: 159169930 [HT] Lothlorien F.C. (51042, IV.53) #156 Club dei Mille Meglio essere ottimisti e avere torto, che pessimisti e avere ragione [Albert Einstein]
signature.asc
Description: Digital signature

