? .cache
? .project
? .projectOptions
? files
? image.gd_102987.patch
? temp
? test.patch
? includes/image.imagemagick.inc
? misc/Thumbs.db
? misc/farbtastic/Thumbs.db
? sites/all/modules
? sites/default/settings.php
Index: includes/file.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/file.inc,v
retrieving revision 1.108
diff -u -p -u -p -r1.108 file.inc
--- includes/file.inc	15 Oct 2007 14:52:18 -0000	1.108
+++ includes/file.inc	18 Oct 2007 15:21:52 -0000
@@ -750,7 +750,8 @@ function file_validate_image_resolution(
  */
 function file_save_data($data, $dest, $replace = FILE_EXISTS_RENAME) {
   $temp = file_directory_temp();
-  $file = tempnam($temp, 'file');
+  // On Windows, temnap() requires an absolute path, so we use realpath().
+  $file = tempnam(realpath($temp), 'file');
   if (!$fp = fopen($file, 'wb')) {
     drupal_set_message(t('The file could not be created.'), 'error');
     return 0;
