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

Re: can't patch rpm.c



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



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