use separate chgrp/chown commands (slightly more portable, if a bit
authorewt <devnull@localhost>
Thu, 31 Oct 1996 19:53:35 +0000 (19:53 +0000)
committerewt <devnull@localhost>
Thu, 31 Oct 1996 19:53:35 +0000 (19:53 +0000)
slower)

CVS patchset: 1138
CVS date: 1996/10/31 19:53:35

build/build.c

index d5ac52e..61fe609 100644 (file)
@@ -348,11 +348,10 @@ static int doSetupMacro(Spec spec, StringBuf sb, char *line)
     sprintf(buf, "cd %s/%s", getVar(RPMVAR_BUILDDIR), build_subdir);
     appendLineStringBuf(sb, buf);
     if (! geteuid()) {
-       strcpy(buf, "chown -R root.root .");
-       appendLineStringBuf(sb, buf);
+       appendLineStringBuf(sb, "chown -R root .");
+       appendLineStringBuf(sb, "chgrp -R root .");
     }
-    strcpy(buf, "chmod -R a+rX,g-w,o-w .");
-    appendLineStringBuf(sb, buf);
+    appendLineStringBuf(sb, "chmod -R a+rX,g-w,o-w .");
     
     return 0;
 }