gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] PATCH: shorter tmp-file names (for cygwin)


From: lode . leroy
Subject: [Gnu-arch-users] PATCH: shorter tmp-file names (for cygwin)
Date: Thu, 15 Jan 2004 15:27:22 +0100 (CET)
User-agent: SquirrelMail/1.4.1

It occurred to me that the problem with using tla on cygwin
is not as much the length of the paths that tla generates,
but the temporary directory names add about 60 chars.
reducing this makes it tla usable...

of course, whether you will run into the 240-odd limit will
depend on what file names you use, and the depth of
your source tree...

diff -c -r -b -w ../../pkg/tla-1.2pre0/src/tla/libfsutils/tmp-files.c
src/tla/libfsutils/tmp-files.c
*** ../../pkg/tla-1.2pre0/src/tla/libfsutils/tmp-files.c        Sat Dec  6
20:35:27 2003
--- src/tla/libfsutils/tmp-files.c      Thu Jan 15 14:22:25 2004
***************
*** 42,48 ****
    cvt_ulong_to_decimal (seq_str, (unsigned long)seq);

    path = file_name_in_vicinity (0, dir, basename);
!   path = str_realloc_cat_many (0, path, ".", now_str, ".", pid_str, ".",
seq_str, str_end);

    return path;
  }
--- 42,49 ----
    cvt_ulong_to_decimal (seq_str, (unsigned long)seq);

    path = file_name_in_vicinity (0, dir, basename);
!   /*path = str_realloc_cat_many (0, path, ".", now_str, ".", pid_str,
".", seq_str, str_end);*/
!   path = str_realloc_cat_many (0, path, ".", seq_str, str_end);

    return path;
  }



----------------------------------------------------------------------------------
Plaats je zoekertjes GRATIS op AdValvas
Placez votre petite annonce GRATUITEMENT sur AdValvas
http://www.advalvas.be




reply via email to

[Prev in Thread] Current Thread [Next in Thread]