Bug 491045: Remove the remaining VMS (OpenVMS) code. r=nelson.
authorwtc%google.com
Sat, 09 May 2009 13:54:14 +0000
changeset 4110 231e71b769dc8c9537fb67049b13e1423cd6b1d9
parent 4109 25923a3aeae262f8ef823eaec4d966ab5fdd4725
child 4111 af2eb0c333bad85be7623faecbe859f5f86274c1
push idunknown
push userunknown
push dateunknown
reviewersnelson
bugs491045
Bug 491045: Remove the remaining VMS (OpenVMS) code. r=nelson.
config/nsinstall.c
--- a/config/nsinstall.c
+++ b/config/nsinstall.c
@@ -363,51 +363,35 @@ main(int argc, char **argv)
 		if (wc < 0)
 		    fail("cannot write to %s", toname);
 	    }
 	    if (cc < 0)
 		fail("cannot read from %s", name);
 
 	    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;
 		if (utime(toname, &utb) < 0)
 		    fail("cannot set times of %s", toname);
 	    }
 #ifdef HAVE_FCHMOD
 	    if (fchmod(tofd, mode) < 0)
 #else
 	    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);
 
 	    /* Must check for delayed (NFS) write errors on close. */
 	    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);
     }
 
     free(cwd);
     free(todir);
     return 0;