Re: can't patch rpm.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2004-08-03 at 00:04, turhan mehmet wrote:
> Hi people,
> 
> + system("/path/to/mysmallpythonapp.py");       #// my small patch

First question is, does execution reach this point? If puts() does not
output anything most likely execution does not reach that spot.

Try placing a fprintf(stderr, "Hello there\n"); near the beginning of
main(). Then move it gradually toward where you want it.

Next, have you done chmod a+x /path/to/mysmallpythonapp.py ?
What about system("python /path/to/pythonapp.py"); ?

When posting patches, you should keep an _unmodiifed_ copy of the file,
and then do diff -u unmodifiedfile modifiedfile > patch, and post the
entire patch. Then the patch will show what file and what line number is
affected by the changes. 

Finally, I suggest you move this question to a group about C
programming. I think a C tutorial would be a bit out of topic here.

Regards, and good luck.
-Enrique


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux