Changeset 68 for trunk/src/sh_files.c


Ignore:
Timestamp:
Oct 30, 2006, 12:03:44 AM (18 years ago)
Author:
rainer
Message:

Update trunk to samhain 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_files.c

    r61 r68  
    15631563   */
    15641564  sl_strlcpy (theFile.fullpath, iname, PATH_MAX);
     1565  theFile.attr_string = NULL;
    15651566
    15661567  (void) relativeName;
     
    15711572  if ((sig_termfast == 1) || (sig_terminate == 1))
    15721573    {
     1574      if (theFile.attr_string) SH_FREE(theFile.attr_string);
    15731575      SL_RETURN((0), _("sh_files_checkdir"));
    15741576    }
     
    15771579    {
    15781580      SH_FREE(tmpname);
     1581      if (theFile.attr_string) SH_FREE(theFile.attr_string);
    15791582      SL_RETURN((-1), _("sh_files_checkdir"));
    15801583    }
     
    15861589                       tmpname);
    15871590      SH_FREE(tmpname);
     1591      if (theFile.attr_string) SH_FREE(theFile.attr_string);
    15881592      SL_RETURN((-1), _("sh_files_checkdir"));
    15891593    }
     
    16071611      SH_FREE(tmpname);
    16081612
     1613      if (theFile.attr_string) SH_FREE(theFile.attr_string);
    16091614      SL_RETURN((-1), _("sh_files_checkdir"));
    16101615    }
     
    16601665    if (sig_termfast == 1)
    16611666      {
     1667        if (theFile.attr_string) SH_FREE(theFile.attr_string);
    16621668        SL_RETURN((0), _("sh_files_checkdir"));
    16631669      }
     
    18501856    if ((sig_termfast == 1) || (sig_terminate == 1))
    18511857      {
     1858        if (theFile.attr_string) SH_FREE(theFile.attr_string);
    18521859        SL_RETURN((0), _("sh_files_checkdir"));
    18531860      }
     
    18961903#endif
    18971904
     1905  if (theFile.attr_string) SH_FREE(theFile.attr_string);
    18981906  SH_FREE(tmpname);
    18991907
     
    19861994   */
    19871995  sl_strlcpy (theFile.fullpath, fullpath, PATH_MAX);
    1988   theFile.check_mask = sh_files_maskof(class);
    1989   theFile.reported   = (*reported);
     1996  theFile.check_mask  = sh_files_maskof(class);
     1997  theFile.reported    = (*reported);
     1998  theFile.attr_string = NULL;
    19901999
    19912000  TPT(( 0, FIL__, __LINE__, _("msg=<checking file: %s>\n"),  fullpath));
     
    20012010            fullpath, status));
    20022011      if (class == SH_LEVEL_ALLIGNORE && sh.flag.checkSum != SH_CHECK_INIT)
    2003           sh_hash_set_visited_true (fullpath);
     2012        sh_hash_set_visited_true (fullpath);
     2013      if (theFile.attr_string)
     2014        SH_FREE(theFile.attr_string);
    20042015      SL_RETURN(SH_FILE_UNKNOWN, _("sh_files_filecheck"));
    20052016    }
     
    20802091    }
    20812092#else
    2082       (void) rsrcflag; /* avoid compiler warning */
     2093  (void) rsrcflag; /* avoid compiler warning */
    20832094#endif
    20842095
    20852096 ret_point:
     2097
     2098  if (theFile.attr_string) SH_FREE(theFile.attr_string);
    20862099
    20872100  switch (theFile.c_mode[0])
Note: See TracChangeset for help on using the changeset viewer.