Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to index page
Thread view  Board view
david

08.02.2020, 17:04
 

last mutt on freedos (Developers)

Ahoj,

New mutt email clients uses severall files with symlinks in temporary directory

./muttlib.c
void _mutt_buffer_mktemp (BUFFER *buf, const char *prefix, const char *suffix,
  mutt_buffer_printf (buf, "%s/%s-%s-%d-%d-%ld%ld%s%s",
void _mutt_mktemp (char *s, size_t slen, const char *prefix, const char *suffix,
  size_t n = snprintf (s, slen, "%s/%s-%s-%d-%d-%ld%ld%s%s",


(gdb) b open
Breakpoint 1 at 0x7fcf470b5100: open. (2 locations)
(gdb) c
Continuing.
Breakpoint 1, __libc_open64 (file=0x55f08c947510 "/tmp/.muttHIqy9L/mutt-host1-1000-13162-4630750251639568698", oflag=oflag@entry=131265) at ../sysdeps/unix/sysv/linux/open64.c:37
37      {
(gdb) bt
#0  __libc_open64 (file=0x55f08c947510 "/tmp/.muttHIqy9L/mutt-host1-1000-13162-4630750251639568698", oflag=oflag@entry=131265) at ../sysdeps/unix/sysv/linux/open64.c:37
#1  0x000055f08bd3b4b5 in open (__oflag=131265, __path=<optimized out>) at /usr/include/bits/fcntl2.h:59
#2  safe_open (path=0x55f08ca39ad0 "/tmp/mutt-host1-1000-13162-4630750251639568698", flags=131265) at muttlib.c:2405
#3  0x000055f08bd3b5d2 in safe_fopen (path=<optimized out>, mode=mode@entry=0x55f08bd7b59f "w") at muttlib.c:2459
#4  0x000055f08bcccf7f in mutt_display_message (cur=0x55f09132cd60) at commands.c:208
#5  0x000055f08bcda4cc in mutt_index_menu () at curs_main.c:1443
#6  0x000055f08bcbcb36 in main (argc=1, argv=0x7fff44522938, environ=<optimized out>) at main.c:1344
(gdb) up
#1  0x000055f08bd3b4b5 in open (__oflag=131265, __path=<optimized out>) at /usr/include/bits/fcntl2.h:59
warning: Source file is more recent than executable.
59        return __open_alias (__path, __oflag, __va_arg_pack ());
(gdb)
#2  safe_open (path=0x55f08ca39ad0 "/tmp/mutt-host1-1000-13162-4630750251639568698", flags=131265) at muttlib.c:2405
2405        if ((fd = open (mutt_b2s (safe_file), flags, 0600)) < 0)
(gdb)
#3  0x000055f08bd3b5d2 in safe_fopen (path=<optimized out>, mode=mode@entry=0x55f08bd7b59f "w") at muttlib.c:2459
2459        if ((fd = safe_open (path, flags)) < 0)
(gdb) up
#4  0x000055f08bcccf7f in mutt_display_message (cur=0x55f09132cd60) at commands.c:208
208       if ((fpout = safe_fopen (mutt_b2s (tempfile), "w")) == NULL)
(gdb) l
203       }
204     
205     
206       tempfile = mutt_buffer_pool_get ();
207       mutt_buffer_mktemp (tempfile);
208       if ((fpout = safe_fopen (mutt_b2s (tempfile), "w")) == NULL)
209       {
210         mutt_error _("Could not create temporary file!");
211         goto cleanup;
212       }
(gdb) q


The /temp is broken in FreeDOS on FAT32, mutt can`t reach files :(
Do You have any idea, how to fix symlinks and temporary files in new mutt?

Thanks David

rr

Homepage E-mail

Berlin, Germany,
12.02.2020, 18:55

@ david
 

last mutt on freedos

> New mutt email clients uses severall files with symlinks in temporary
> directory

So, you mean, Mutt relies on the name of the files to work correctly?

Can you provide a DOS binary for testing by others?

> The /temp is broken in FreeDOS on FAT32, mutt can`t reach files :(

Please test on FAT16.
Which FreeDOS version did you use?
Does it work on any other DOS?

> Do You have any idea, how to fix symlinks and temporary files in new mutt?

You probably need to code a mapping between "more DOS-style filenames" and the one, Mutt expects.

---
Forum admin

david

23.02.2020, 19:18

@ rr
 

last mutt on freedos

>
> Can you provide a DOS binary for testing by others?
>
https://www.bttr-software.de/tmp/mutt.zip

Robert uploaded testing mutt for short time!

RayeR

Homepage

CZ,
27.02.2020, 05:25

@ david
 

last mutt on freedos

It depends on libintl.DXE (missing).

---
DOS gives me freedom to unlimited HW access.

Rugxulo

Homepage

Usono,
27.02.2020, 10:38

@ RayeR
 

last mutt on freedos

> It depends on libintl.DXE (missing).

Isn't that in gtx1981b.zip? (GNU gettext, 12 MB)

david

29.02.2020, 09:19

@ Rugxulo
 

last mutt on freedos

> > It depends on libintl.DXE (missing).
>
I have sent "dxe" to Rayer, The date of dxe is Year 2014 from djgpp package?

Back to index page
Thread view  Board view
22049 Postings in 2034 Threads, 396 registered users, 249 users online (0 registered, 249 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum