~ubuntu-branches/ubuntu/precise/nspr/precise-proposed

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/config/nsinstall.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
 * Does getcwd() take NULL as the first argument and malloc
71
71
 * the result buffer?
72
72
 */
73
 
#if !defined(DARWIN) && !defined(NEXTSTEP) && !defined(VMS)
 
73
#if !defined(DARWIN) && !defined(NEXTSTEP)
74
74
#define GETCWD_CAN_MALLOC
75
75
#endif
76
76
 
368
368
 
369
369
            if (ftruncate(tofd, sb.st_size) < 0)
370
370
                fail("cannot truncate %s", toname);
371
 
            /*
372
 
            ** On OpenVMS we can't chmod() until the file is closed, and we
373
 
            ** have to utime() last since fchown/chmod alter the timestamps.
374
 
            */
375
 
#ifndef VMS
376
371
            if (dotimes) {
377
372
                utb.actime = sb.st_atime;
378
373
                utb.modtime = sb.st_mtime;
385
380
            if (chmod(toname, mode) < 0)
386
381
#endif
387
382
                fail("cannot change mode of %s", toname);
388
 
#endif
389
383
            if ((owner || group) && fchown(tofd, uid, gid) < 0)
390
384
                fail("cannot change owner of %s", toname);
391
385
 
393
387
            if (close(tofd) < 0)
394
388
                fail("cannot write to %s", toname);
395
389
            close(fromfd);
396
 
#ifdef VMS
397
 
            if (chmod(toname, mode) < 0)
398
 
                fail("cannot change mode of %s", toname);
399
 
            if (dotimes) {
400
 
                utb.actime = sb.st_atime;
401
 
                utb.modtime = sb.st_mtime;
402
 
                if (utime(toname, &utb) < 0)
403
 
                    fail("cannot set times of %s", toname);
404
 
            }
405
 
#endif
406
390
        }
407
391
 
408
392
        free(toname);