~henrix/ubuntu/precise/open-vm-dkms/lp-1416003

« back to all changes in this revision

Viewing changes to lib/user/utilPosix.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-10-23 15:32:00 UTC
  • mfrom: (1.1.2 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081023153200-gc1bfx89hj35c799
Tags: 2008.10.10-123053-2
* Correcting typo in dh_installinit call.
* Downgrading depends on module-assistant to recommends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
      return NULL;
234
234
   }
235
235
 
236
 
   if (   Posix_Getpwuid_r(uid, &pw, memPool, memPoolSize, &pw_p) != 0
237
 
       || pw_p != &pw) {
 
236
   if (Posix_Getpwuid_r(uid, &pw, memPool, memPoolSize, &pw_p) != 0) {
238
237
      free(memPool);
239
238
      Warning("UtilGetUserName: Unable to retrieve the username associated "
240
239
              "with user ID %u.\n",
242
241
      return NULL;
243
242
   }
244
243
 
245
 
   userName = strdup(pw.pw_name);
 
244
   userName = strdup(pw_p->pw_name);
246
245
   free(memPool);
247
246
   if (userName == NULL) {
248
247
      Warning("UtilGetUserName: Not enough memory.\n");