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

« back to all changes in this revision

Viewing changes to services/plugins/dndcp/dnd/dndLinux.c

  • Committer: Package Import Robot
  • Author(s): Nate Muench
  • Date: 2012-06-20 15:59:51 UTC
  • mfrom: (1.4.8)
  • Revision ID: package-import@ubuntu.com-20120620155951-6rupmpb0f70b52zr
Tags: 2012.05.21-724730-0ubuntu1
* Merging upstream version 2012.05.21-724730.
  - Fixes building against the current Quantal kernel. (LP: #1000344)
  - Fixes Quantal installation issues. (LP: #1019031)

* Sync with Debian
  - Updating to debhelper version 9.
  - Updating to standards version 3.9.3.
  - Updating copyright file machine-readable format version 1.0.
  - Building without multiarch paths for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
#ifdef sun
55
55
#define ACCESSPERMS           (S_IRWXU | S_IRWXG | S_IRWXO)
56
56
#endif
 
57
#ifdef __ANDROID__
 
58
/*
 
59
 * Android doesn't support setmntent(), endmntent() or MOUNTED.
 
60
 */
 
61
#define NO_SETMNTENT
 
62
#define NO_ENDMNTENT
 
63
#define ACCESSPERMS           (S_IRWXU | S_IRWXG | S_IRWXO)
 
64
#endif
57
65
 
58
66
 
59
67
/*
504
512
   }
505
513
 
506
514
   if (size != sizeof(VMBLOCK_FUSE_READ_RESPONSE)) {
507
 
      LOG(4, ("%s: Response too short (%"FMTSZ"d vs. %"FMTSZ"u).\n",
508
 
              __func__, size, sizeof(VMBLOCK_FUSE_READ_RESPONSE)));
 
515
      /*
 
516
       * Refer to bug 817761 of casting size to size_t.
 
517
       */
 
518
      LOG(4, ("%s: Response too short (%"FMTSZ"u vs. %"FMTSZ"u).\n",
 
519
              __func__, (size_t)size, sizeof(VMBLOCK_FUSE_READ_RESPONSE)));
509
520
 
510
521
      return FALSE;
511
522
   }
546
557
                   mode_t vmbDeviceMode,           // IN
547
558
                   Bool (*verifyBlock)(int fd))    // IN
548
559
{
 
560
#if defined NO_SETMNTENT || defined NO_ENDMNTENT
 
561
   NOT_IMPLEMENTED();
 
562
   errno = ENOSYS;
 
563
   return -1;
 
564
#else
549
565
   Bool found = FALSE;
550
566
   int blockFd = -1;
551
567
   char *realMntPoint;
609
625
out:
610
626
   free(realMntPoint);
611
627
   return blockFd;
 
628
#endif
612
629
}
613
630
 
614
631