problem when launching a .dat file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fortune-mod (Debian) |
Fix Released
|
Unknown
|
|||
fortune-mod (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: fortune-mod
- Source Package: fortune-mod
- Description: Ubuntu 9.10
- Release: 9.10
- fortune-mod:
Installé : 1:1.99.1-3.1ubuntu3
Candidat : 1:1.99.1-3.1ubuntu3
Table de version :
*** 1:1.99.1-3.1ubuntu3 0
500 http://
100 /var/lib/
I tried to launch a .dat file.
When I executed the command fortune ./file/path I get this response:
delphine@
./femmes-celebres: No such file or directory
./femmes-celebres: No such file or directory
Pourquoi les mots, cette précision brutale qui maltraite nos complications ?
-+ Simone de Beauvoir - Extrait de ses Mémoires d’une jeune fille
As you see, although it states that there is "No such file or directory", the desired quotations appear right after.
Here is the ltrace:
delphine@
__libc_
getopt(2, 0xbf8c3ad4, "acefilm:n:osuvw") = -1
__ctype_b_loc() = 0xb77c2adc
snprintf(
snprintf(
getenv("LC_ALL") = NULL
getenv(
getenv("LANGUAGE") = NULL
getenv("LANG") = "fr_FR.UTF-8"
strncpy(0xbf8c31a8, "fr_FR.UTF-8", 512) = 0xbf8c31a8
strchr(
__snprintf_
__xstat(3, "/usr/share/
__errno_location() = 0xb77c2ad8
strncpy(0xbf8c31a5, "fr", 2) = 0xbf8c31a5
__snprintf_
__xstat(3, "/usr/share/
__errno_location() = 0xb77c2ad8
__xstat(3, "./femmes-
open(".
strchr(
getenv("LC_ALL") = NULL
getenv(
getenv("LANGUAGE") = NULL
getenv("LANG") = "fr_FR.UTF-8"
strncpy(0xbf8c2f48, "fr_FR.UTF-8", 512) = 0xbf8c2f48
strchr(
__snprintf_
strncmp(
strncmp(
perror(
) = <void>
__xstat(3, "./femmes-
open(".
strchr(
getenv("LC_ALL") = NULL
getenv(
getenv("LANGUAGE") = NULL
getenv("LANG") = "fr_FR.UTF-8"
strncpy(0xbf8c2f48, "fr_FR.UTF-8", 512) = 0xbf8c2f48
strchr(
__snprintf_
strncmp(
strncmp(
perror(
) = <void>
getenv("PWD") = "/home/delphine"
__snprintf_
__xstat(3, "/home/
__xstat(3, "/home/
open("/
malloc(88) = 0x087d2008
strlen(
malloc(33) = 0x087d2068
strlen(
strncpy(0x087d2068, "/home/
strlen(
malloc(33) = 0x087d2090
strlen(
strncpy(0x087d2090, "/home/
strlen(
malloc(36) = 0x087d20b8
__sprintf_
__xstat(3, "/home/
strrchr(
strrchr(
strlen(
malloc(37) = 0x087d20e0
strlen(
access(
recode_new_outer(1, 0xbf8c3ad4, 0xbf8c3a08, 0x8048e78, 0x97d304) = 0x87d2110
recode_
setlocale(6, "") = "fr_FR.UTF-8"
nl_langinfo(14, 0x804bfd1, 0xbf8c3a08, 0x8048e78, 0x97d304) = 0xb769bd48
strlen("UTF-8") = 5
malloc(13) = 0x087edaf0
__sprintf_
recode_
free(0x087edaf0) = <void>
time(NULL) = 1269526785
getpid() = 5264
srandom(1269532049) = <void>
open("/
read(6, "", 4) = 4
read(6, "", 4) = 4
read(6, "", 4) = 4
read(6, "", 4) = 4
read(6, "", 4) = 4
read(6, "%", 4) = 4
close(6) = 0
random() = 35880652
open("/
lseek(6, 376, 0) = 376
read(6, "", 4) = 4
read(6, "", 4) = 4
fdopen(5, 0x804bfc7, 0x4bab7101, 0x8049598, 0x87d2008) = 0x87edb20
fseek(0x87edb20, 15656, 0, 0, 0) = 0
fgets("Qu'est-ce qu'un adulte ? Un enfa"..., 8192, 0x87edb20) = 0xbf8c19d8
fputs("Qu'est-ce qu'un adulte ? Un enfa"..., 0x97d4c0Qu'est-ce qu'un adulte ? Un enfant gonflé d'âge.
) = 1
fgets(" -+ Simone de Beauvoir "..., 8192, 0x87edb20) = 0xbf8c19d8
fputs(" -+ Simone de Beauvoir "..., 0x97d4c0 -+ Simone de Beauvoir - Extrait de La Femme rompue +-
) = 1
fgets("%\n", 8192, 0x87edb20) = 0xbf8c19d8
fflush(0x97d4c0) = 0
exit(0 <unfinished ...>
+++ exited (status 0) +++
ProblemType: Bug
Architecture: i386
Date: Thu Mar 25 16:30:55 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelMo
Package: fortune-mod 1:1.99.1-3.1ubuntu3
ProcEnviron:
LANG=fr_FR.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: fortune-mod
Uname: Linux 2.6.31-20-generic i686
Changed in fortune-mod (Ubuntu): | |
status: | New → Confirmed |
Changed in fortune-mod (Debian): | |
status: | Unknown → New |
Changed in fortune-mod (Debian): | |
status: | New → Fix Released |
Heya,
I've looked at your bug 308602 and and looked around in the code. In the
source, a comment explicitly speaks about forbidding files which start
with a "." (the comment describing is_fortfile in fortune.c). This seems
to be a feature, not a bug, though I can't say why :-)
Marc
--
BOFH #435:
Internet shut down due to maintainance