From c2ce4c40f90034165fbae3ccb8721aec98b0a252 Mon Sep 17 00:00:00 2001 From: "wtc%google.com" Date: Sat, 9 May 2009 13:54:14 +0000 Subject: [PATCH] Bug 491045: Remove the remaining VMS (OpenVMS) code. r=nelson. git-svn-id: svn://10.0.0.236/trunk@257143 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/nsprpub/config/nsinstall.c | 16 ---------------- 1 file changed, 16 deletions(-) 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);