~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to lib/file/fileIO.c

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
         /* Describe the lock not acquired situation in detail */
270
270
         Warning(LGPFX" %s on '%s' failed: %s\n",
271
271
                 __FUNCTION__, UTF8(file->fileName),
272
 
                 (err == 0) ? "Lock timed out" : Err_Errno2String(err));
 
272
                 (err == 0) ? "Lock timed out" : strerror(err));
273
273
 
274
274
         /* Return a serious failure status if the locking code did */
275
275
         switch (err) {
327
327
   if (file->lockToken != NULL) {
328
328
      int err;
329
329
 
330
 
      err = FileLock_Unlock(file->fileName, file->lockToken);
 
330
      err = FileLock_Unlock(file->lockToken);
331
331
 
332
332
      if (err != 0) {
333
333
         Warning(LGPFX" %s on '%s' failed: %s\n",
334
 
                 __FUNCTION__, UTF8(file->fileName), Err_Errno2String(err));
 
334
                 __FUNCTION__, UTF8(file->fileName), strerror(err));
335
335
 
336
336
         ret = FILEIO_ERROR;
337
337
      }
373
373
}
374
374
 
375
375
 
376
 
#if defined(_WIN32) || defined(GLIBC_VERSION_21) || defined(__APPLE__) || \
377
 
    defined(__FreeBSD__)
 
376
#if defined(_WIN32) || defined(__linux__) || defined(__APPLE__) || \
 
377
    defined(__FreeBSD__) || defined(sun)
378
378
/*
379
379
 *----------------------------------------------------------------------
380
380
 *