delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/10/25/01:13:16

Message-Id: <199610250508.OAA08500@mail.st.rim.or.jp>
From: "Daisuke Aoyama" <jack AT st DOT rim DOT or DOT jp>
To: "DJGPP WORKERS" <djgpp-workers AT delorie DOT com>
Subject: problem under v2.01
Date: Fri, 25 Oct 1996 14:08:09 +0900
MIME-Version: 1.0

Following both command lines are correct but cannot work under v2.01.

    ar rv libnew.a object.o
    mv foo bar

This problem comes from missing rename. Probably other commands have
same problem.

------------------------------------------------------------
diff -acr src-orig/libc/ansi/stdio/_rename.c src/libc/ansi/stdio/_rename.c
*** src-orig/libc/ansi/stdio/_rename.c	Sat Oct 19 11:24:54 1996
--- src/libc/ansi/stdio/_rename.c	Fri Oct 25 13:41:48 1996
***************
*** 32,38 ****
  
      char *pbase = 0, *p;
      static char try_char[] = "abcdefghijklmnopqrstuvwxyz012345789";
!     int idx = sizeof(try_char);
  
      /* Generate a temporary name.  Can't use `tmpnam', since $TMPDIR
         might point to another drive, which will fail the DOS call.  */
--- 32,38 ----
  
      char *pbase = 0, *p;
      static char try_char[] = "abcdefghijklmnopqrstuvwxyz012345789";
!     int idx = sizeof(try_char) - 1;
  
      /* Generate a temporary name.  Can't use `tmpnam', since $TMPDIR
         might point to another drive, which will fail the DOS call.  */
------------------------------------------------------------

Daisuke Aoyama
jack AT st DOT rim DOT or DOT jp

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019