stoddard 00/02/15 14:38:30
Modified: src/lib/apr/file_io/win32 filedup.c Log: Return APR_ENOTIMPL on Windows if caller attempts dup2. Revision Changes Path 1.7 +3 -6 apache-2.0/src/lib/apr/file_io/win32/filedup.c Index: filedup.c =================================================================== RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/win32/filedup.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- filedup.c 2000/02/15 00:48:24 1.6 +++ filedup.c 2000/02/15 22:38:27 1.7 @@ -76,12 +76,8 @@ (*new_file)->cntxt = old_file->cntxt; if (have_file) { - if (!DuplicateHandle(hCurrentProcess, (*new_file)->filehand, - hCurrentProcess, - &old_file->filehand, 0, FALSE, - DUPLICATE_SAME_ACCESS)) { - return GetLastError(); - } + /* dup2 is not supported with native Windows handles */ + return APR_ENOTIMPL; } else { if (!DuplicateHandle(hCurrentProcess, old_file->filehand, @@ -108,4 +104,5 @@ ap_null_cleanup); return APR_SUCCESS; } +