From: ewt Date: Thu, 16 Jan 1997 17:23:29 +0000 (+0000) Subject: use RPMVAR_FIXPERMS rather then static chmod args X-Git-Tag: tznext/4.11.0.1.tizen20130304~10668 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed2bd2bede9e3bcfc40e2e30b967901d0d15d626;p=tools%2Flibrpm-tizen.git use RPMVAR_FIXPERMS rather then static chmod args CVS patchset: 1292 CVS date: 1997/01/16 17:23:29 --- diff --git a/build/build.c b/build/build.c index ac03193..1164d1c 100644 --- a/build/build.c +++ b/build/build.c @@ -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; }