Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3B07D55A.4A0018C7@iprimus.com.au> Date: Sun, 20 May 2001 22:31:54 +0800 From: Stewart Greenhill X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Rename() broken again? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 May 2001 14:31:51.0878 (UTC) FILETIME=[9C581E60:01C0E139] Hi Folks, I reported this problem under 1.1.2 and it was fixed for 1.1.3. It seems that it may have returned... Unix file semantics should allow open files to be renamed. If all is well, the following code fragment should not return an error. #include char * oldName = "test.file^"; char * newName = "test.file"; int main(int argc, char ** argv) { int result; FILE * f = fopen(oldName, "w"); result = rename(oldName, newName); if (result != 0) { perror("Rename"); } else { printf("OK!"); } fclose(f); } I can verify that this works properly under cygwin 1.1.7 on Windows NT 4. A user has reported problems under Windows 98 with the latest release of cygwin. His system: OS: Win98se german File system: Fat32 6GB and 74GB on a 3x30GB RAID Cygwin: Downloaded from official site on 18.May.2001 (dll-ver 1.3.1) His result with the above example: Rename: Permission denied This breaks the OOC Oberon-2 compiler (ooc.sourceforge.net). This seems to be a bug. Could someone please check what's happening here? Cheers, Stewart -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple