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