diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-12-15 16:47:02 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-12-15 16:47:02 +0300 |
commit | 44be39475c29e2866f1a2bcd8775ec5e489d1813 (patch) | |
tree | 28c6ba7b1510b4a412d366a588a7b046632f2ae3 /src/os/win32/ngx_files.h | |
parent | 29b5a1378460c746a9e9eec7110df31e845b31b2 (diff) |
fix Win32 error messages when an temporary file replaces an existent file:
*) do not rename an already renamed file
*) now ngx_win32_rename_file() returns error code
*) do not log failure inside ngx_win32_rename_file()
Diffstat (limited to 'src/os/win32/ngx_files.h')
-rw-r--r-- | src/os/win32/ngx_files.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h index cc9fa8f1e..610fcd0dc 100644 --- a/src/os/win32/ngx_files.h +++ b/src/os/win32/ngx_files.h @@ -111,7 +111,7 @@ ssize_t ngx_write_console(ngx_fd_t fd, void *buf, size_t size); #define ngx_rename_file(o, n) MoveFile((const char *) o, (const char *) n) #define ngx_rename_file_n "MoveFile()" -ngx_int_t ngx_win32_rename_file(ngx_str_t *from, ngx_str_t *to, ngx_log_t *log); +ngx_err_t ngx_win32_rename_file(ngx_str_t *from, ngx_str_t *to, ngx_log_t *log); |