[Developers] Fix for Bug Report 1864.
smadiraju at cct.lsu.edu
smadiraju at cct.lsu.edu
Tue Jun 21 15:52:02 CDT 2005
Hi all,
I am attaching the file which fixes the bug 1864. The patch makes sure that when
a directory is passed as input instead of a .par file, to the cactus executable
it flags an error. If the fix is not present then the directory input is
accepted and nothing happens.
The fix involves using the stat function in C which fill a buffer with all the
information about the file that is passed. Then we use a S_ISDIR macro to test
if the file name passed is a directory. If it is a directory then an error is
flagged.
Please test the patch and apply.
Regards
Sasanka Madiraju
CCT.
More information about the Developers
mailing list