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

« back to all changes in this revision

Viewing changes to lib/misc/posixPosix.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-03-20 10:19:00 UTC
  • mfrom: (1.1.4 upstream) (2.4.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090320101900-1o604camiubq2de8
Tags: 2009.03.18-154848-2
Correcting patch system depends (Closes: #520493).

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
#define VM_SYSTEM_HAS_GETGRNAM_R 1
71
71
#endif
72
72
 
73
 
# if defined(__FreeBSD__) && __FreeBSD_version >= 503000
74
 
#  include <syslimits.h>  // PATH_MAX
 
73
# if defined(__FreeBSD__)
 
74
#  include <sys/syslimits.h>  // PATH_MAX
75
75
# else
76
76
#  include <limits.h>  // PATH_MAX
77
77
# endif
1333
1333
      return NULL;
1334
1334
   }
1335
1335
 
1336
 
   bytes = readlink(path, link, sizeof link);
 
1336
   bytes = readlink(path, link, sizeof link - 1);
1337
1337
   ASSERT_NOT_IMPLEMENTED(bytes < (ssize_t) sizeof link);
1338
1338
 
1339
1339
   free(path);