use RPMVAR_FIXPERMS rather then static chmod args
authorewt <devnull@localhost>
Thu, 16 Jan 1997 17:23:29 +0000 (17:23 +0000)
committerewt <devnull@localhost>
Thu, 16 Jan 1997 17:23:29 +0000 (17:23 +0000)
CVS patchset: 1292
CVS date: 1997/01/16 17:23:29

build/build.c

index ac03193..1164d1c 100644 (file)
@@ -350,7 +350,12 @@ static int doSetupMacro(Spec spec, StringBuf sb, char *line)
        appendLineStringBuf(sb, "chown -R root .");
        appendLineStringBuf(sb, "chgrp -R root .");
     }
-    appendLineStringBuf(sb, "chmod -R a+rX,g-w,o-w .");
+
+    if (rpmGetVar(RPMVAR_FIXPERMS)) {
+       appendStringBuf(sb, "chmod -R ");
+       appendStringBuf(sb, rpmGetVar(RPMVAR_FIXPERMS));
+       appendLineStringBuf(sb, " .");
+    }
     
     return 0;
 }