diff --git a/mozilla/nsprpub/config/nsinstall.c b/mozilla/nsprpub/config/nsinstall.c index b4b8fde0479..f18e1166ca4 100644 --- a/mozilla/nsprpub/config/nsinstall.c +++ b/mozilla/nsprpub/config/nsinstall.c @@ -368,11 +368,6 @@ main(int argc, char **argv) if (ftruncate(tofd, sb.st_size) < 0) fail("cannot truncate %s", toname); - /* - ** On OpenVMS we can't chmod() until the file is closed, and we - ** have to utime() last since fchown/chmod alter the timestamps. - */ -#ifndef VMS if (dotimes) { utb.actime = sb.st_atime; utb.modtime = sb.st_mtime; @@ -385,7 +380,6 @@ main(int argc, char **argv) if (chmod(toname, mode) < 0) #endif fail("cannot change mode of %s", toname); -#endif if ((owner || group) && fchown(tofd, uid, gid) < 0) fail("cannot change owner of %s", toname); @@ -393,16 +387,6 @@ main(int argc, char **argv) if (close(tofd) < 0) fail("cannot write to %s", toname); close(fromfd); -#ifdef VMS - if (chmod(toname, mode) < 0) - fail("cannot change mode of %s", toname); - if (dotimes) { - utb.actime = sb.st_atime; - utb.modtime = sb.st_mtime; - if (utime(toname, &utb) < 0) - fail("cannot set times of %s", toname); - } -#endif } free(toname);