Hello all,
I am editing a piece of code that has the following:
It's a security measure on the code. My assumption is that it checks the modified date of the infile, adds 77760001 and makes sure it's less than chktime. Does that sound correct?Code:FileStat.st_mtime = 0l; stat("infile",&FileStat); time(&chktime); if(FileStat.st_mtime+7776000l<chktime ){ up(error6); time_delay(500); dn(error6); exit(FALSE); }
Is chktime the current system time?
The thing I don't understand about the code, is what the 77760001 represents. How can i figure what the modification date and system time must be to get into and/or bypass this function?
Thanks in advance!