~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to guestd/debugStdio.c

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-15 21:21:40 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080815212140-05fhxj8wroosysmj
Tags: 2008.08.08-109361-1ubuntu1
* Merge from Debian unstable (LP: #258393), remaining Ubuntu change:
  - add ubuntu_toolchain_FTBFS.dpatch patch, fix FTBFS
* Update ubuntu_toolchain_FTBFS.dpatch patch for the new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
   size_t bytesWritten;
168
168
   Unicode timePrefix;
169
169
   const char *timePrefixUtf8;
 
170
   char debugFileShadow;
170
171
 
171
172
   ASSERT(debugFile[0] != 0);
172
173
 
174
175
 
175
176
   fr = FileIO_Open(&fd, debugFile, FILEIO_OPEN_ACCESS_WRITE,
176
177
                    FILEIO_OPEN_CREATE);
 
178
   debugFileShadow = debugFile[0];
 
179
   debugFile[0] = '\0';
177
180
   if (fr != FILEIO_SUCCESS) {
178
 
      debugFile[0] = '\0';
179
181
      Warning("---Error opening file '%s'.\n", debugFile);
180
182
      goto done;
181
183
   }
205
207
   FileIO_Close(&fd);
206
208
 
207
209
 done:
 
210
   debugFile[0] = debugFileShadow;
208
211
   return;
209
212
#endif // _CONSOLE
210
213
}