Date: Thu, 27 Mar 2003 13:05:10 +0000 From: "Richard Dawe" Sender: rich AT phekda DOT freeserve DOT co DOT uk To: djgpp-workers AT delorie DOT com X-Mailer: Emacs 21.3.50 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 Subject: DJGPP 2.03, symlink and misdetecting non-executables Message-Id: Reply-To: djgpp-workers AT delorie DOT com Hello. Below is the patch for DJGPP 2.03 for the problem with symlink generating executable stubs for non-executable sources. I have used this patch in release 6 of fileutils 4.1. I'll upload release 6 to DJ later today (GMT+1). If we do another refresh of DJGPP 2.03, I think we should apply this patch. It seems unlikely that there will be another refresh, though. Bye, Rich =] *** /djgpp/src/libc/posix/unistd/symlink.c Tue Dec 14 06:53:00 1999 --- c:/develop/ports/notes/fileutils-4.1/symlink.c Thu Mar 27 11:34:30 2003 *************** static int is_v2_prog(const char *progra *** 46,52 **** type = _check_v2_prog (program, -1); ! if (!type->valid) return -1; if (type->object_format != _V2_OBJECT_FORMAT_COFF) --- 46,52 ---- type = _check_v2_prog (program, -1); ! if (!type->valid && !__file_exists(program)) return -1; if (type->object_format != _V2_OBJECT_FORMAT_COFF)