Use razor_write() for piping script to interpreter.
authorKristian H?gsberg <krh@redhat.com>
Sat Apr 05 00:44:45 2008 -0400 (2008-04-05)
changeset 184472f8d7c7bbc
parent 183 8f4402ee125d
child 185 f70e15405b5f
Use razor_write() for piping script to interpreter.
rpm.c
     1.1 --- a/rpm.c	Thu Mar 20 14:36:50 2008 -0400
     1.2 +++ b/rpm.c	Sat Apr 05 00:44:45 2008 -0400
     1.3 @@ -384,7 +384,7 @@
     1.4  			exit(-1);
     1.5  		}
     1.6  	} else {
     1.7 -		if (script && write(fd[1], script, strlen(script)) < 0) {
     1.8 +		if (script && razor_write(fd[1], script, strlen(script)) < 0) {
     1.9  			fprintf(stderr, "failed to pipe script, %m\n");
    1.10  			return -1;
    1.11  		}