From 1663c84db74fa31ffc64ce87371e53b867f30c77 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Thu, 15 Aug 2013 18:06:27 +0200 Subject: [PATCH] Return an error if rename fails on win32. Amends 9ea39dbaa971889f1e6da186899efa3bdd2ff7d1. --- src/std/c_file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/std/c_file.c b/src/std/c_file.c index c9ac87f9d..ce2fcaee7 100644 --- a/src/std/c_file.c +++ b/src/std/c_file.c @@ -213,6 +213,7 @@ int c_rename( const char *src, const char *dst ) { } while( 1 ); if( err != 0 ) { errno = err; + rc = -1; } } #else