Changeset 310 for trunk/src/sh_files.c


Ignore:
Timestamp:
Feb 16, 2011, 9:33:00 PM (14 years ago)
Author:
katerina
Message:

Add option to skip checksum for certain files (ticket #232). Also fix for #231 (missing warning on invalid recursion depth).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_files.c

    r307 r310  
    11471147  p = sh_files_C_dequote(p, &len);
    11481148  if (!p || len == 0)
    1149     SL_RETURN((-1), _("sh_files_pushdir"));
     1149    SL_RETURN((-1), _("sh_files_pushfile"));
    11501150
    11511151  if (len >= PATH_MAX)
     
    15441544 
    15451545
    1546   if (rdepth < (-1) || tail == p || rdepth > 99)
    1547     rdepth = (-2);
     1546  if (tail == p)
     1547    {
     1548      /* Setting to an invalid number will force MaxRecursionLevel,
     1549       * see sh_files_setrec_int()
     1550       */
     1551      rdepth = (-2);
     1552    }
     1553  else if ( (rdepth < (-1) || rdepth > 99) ||
     1554            ((rdepth == (-1)) && (class != SH_LEVEL_ALLIGNORE)) )
     1555    {
     1556      SH_FREE(p);
     1557      SL_RETURN((-1), _("sh_files_pushdir"));
     1558    }
    15481559
    15491560  len = sl_strlen(tail);
Note: See TracChangeset for help on using the changeset viewer.