Le mardi 31 mai 2005 à 23:38 -0400, Kevin Mark a écrit : > On Tue, May 31, 2005 at 08:15:52PM +0200, Aurélien Campéas wrote: > > Le mardi 31 mai 2005 à 16:09 +0200, Aurélien Campéas a écrit : > > [...] > > > a lot of crap here, but look at the last stat64 syscalls near the end : > > > it looks like a bug related to localisation (fortune tries to open a > > > file named "fr_FR.UTF ..." instead of a real file). Indeed for this > > > system I had the funny idea to ask for encoding of all files in UTF-8 > > > instead of iso-latin-1 as I usually do. > > > > > > So, am I the only one out there that uses UTF8-something as default > > encoding for filenames ? > > > > Aurélien. > > > > Hi, > maybe run the command prefixed with LANG= or LANGUAGE= or LC_ALL= > LC_ALL=en_US fortune >
Indeed. Then, fortune tries to do that : stat64("/usr/local/share/games/fortunes/en_US", 0xbfffdb9c) = -1 EACCES (Permission denied) In fact, in a sarge box where fortune works, this also (almost) happens ... in facts fortune tries a lot of silly filenames before opening the right ones. Go figure. That's not important. fortune fails when trying to open a non-existant file with an EACCES return code (the working version does not get EACCES returns, only ENOENTs). However I checked the permissions and they are *apparently* the same (from /usr/share/games to .../fortunes). Even lsattr shows nothing. How can that be ??? Aurélien. ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.clearswift.com **********************************************************************