Menu

#720 opendir() return value not checked

6.9
open
nobody
Other (206)
5
2012-10-11
2009-01-08
No

Here is a small patch which check the return value of opendir( DIR, "$DirData" ) in ./wwwroot/cgi-bin/awstats.pl, and issue of warning if fail.

I have experimented a problem when $DirData hasexecutable
permission but no read permission. The year selection list only shows the current year because Awstats cannot determine which years are available in $DataDir. It was not obvious to catch the problem.

Discussion

  • Thomas Martin

    Thomas Martin - 2009-01-08
     
  • Laurent Destailleur (Eldy)

    Added/Fixed in CVS tree. Will be available in next version.

     

Log in to post a comment.