Message-Id: <199610250508.OAA08500@mail.st.rim.or.jp> From: "Daisuke Aoyama" To: "DJGPP WORKERS" Subject: problem under v2.01 Date: Fri, 25 Oct 1996 14:08:09 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit 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