Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

last mutt on freedos (Developers)

posted by david, 08.02.2020, 17:04

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

 

Complete thread:

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