set umask on all script runs
authorroot <devnull@localhost>
Mon, 8 Apr 1996 17:53:21 +0000 (17:53 +0000)
committerroot <devnull@localhost>
Mon, 8 Apr 1996 17:53:21 +0000 (17:53 +0000)
CVS patchset: 532
CVS date: 1996/04/08 17:53:21

build/build.c

index 36af4d4..e1112aa 100644 (file)
@@ -84,6 +84,9 @@ struct Script *openScript(Spec spec, int builddir, char *name)
        fprintf(script->file, "exec > /dev/null\n\n");
     }
 
+    /* Set the umask to a known value */
+    fprintf(script->file, "umask 022\n");
+
     fprintf(script->file, "\necho Excuting: %s\n", name);
     fprintf(script->file, "cd %s\n\n", getVar(RPMVAR_BUILDDIR));
     if (builddir) {