[qmailadmin] patch to make qmailadmin 1.0.8 POSIX compatible

2003-01-24 Thread Brian Kolaci
I've updated alias.c and util.c to remove the fts_* functions and put in a new get_du() function. Also, I've implemented the scandir() function and called it bkscandir(). I also fixed an obvious memory leak in the alias functions that used scandir(). Going through the code it appears there's

Re: [qmailadmin] patch to make qmailadmin 1.0.8 POSIX compatible

2003-01-24 Thread Brian Kolaci
Did you leave the function qa_sort() there or remove it? It should have stayed exactly as it was before. All I did was write a function called bkscandir() that implements what's written on the linux scandir() man page. I took 10 minutes looking for the BSD sources, then said forget it and wrote

Re: [qmailadmin] patch to make qmailadmin 1.0.8 POSIX compatible

2003-01-24 Thread Steve Fulton
At 10:45 24/01/2003 -0500, Brian Kolaci wrote: Did you leave the function qa_sort() there or remove it? It should have stayed exactly as it was before. I eventually replaced it with qsort instead of qa_sort. It compiled and ran fine, though the alias/forwards menus did not work. I used your

Re: [qmailadmin] patch to make qmailadmin 1.0.8 POSIX compatible

2003-01-24 Thread Brian Kolaci
qa_sort() is the comparison function that's fed into qsort. In any case, qsort is always called. Brian At 10:45 24/01/2003 -0500, Brian Kolaci wrote: Did you leave the function qa_sort() there or remove it? It should have stayed exactly as it was before. I eventually