Use razor_write() for piping script to interpreter.
authorKristian Høgsberg <krh@redhat.com>
Sat, 5 Apr 2008 04:44:45 +0000 (00:44 -0400)
committerKristian Høgsberg <krh@redhat.com>
Sat, 5 Apr 2008 04:44:45 +0000 (00:44 -0400)
rpm.c

diff --git a/rpm.c b/rpm.c
index e315701..966d1fe 100644 (file)
--- a/rpm.c
+++ b/rpm.c
@@ -384,7 +384,7 @@ run_script(struct installer *installer,
                        exit(-1);
                }
        } else {
-               if (script && write(fd[1], script, strlen(script)) < 0) {
+               if (script && razor_write(fd[1], script, strlen(script)) < 0) {
                        fprintf(stderr, "failed to pipe script, %m\n");
                        return -1;
                }