Changeset 205 for trunk/src/sh_hash.c


Ignore:
Timestamp:
Dec 22, 2008, 10:05:34 PM (16 years ago)
Author:
katerina
Message:

New option LooseDirCheck (ticket #132). Also, replace _exit() with raise(SIGKILL).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_hash.c

    r199 r205  
    14401440}
    14411441
     1442static int sh_loosedircheck = S_FALSE;
     1443
     1444int sh_hash_loosedircheck(const char * str)
     1445{
     1446  return sh_util_flagval(str, &sh_loosedircheck);
     1447}
     1448
    14421449
    14431450static void sh_hash_pushdata_int (file_type * buf, char * fileHash)
     
    30563063    }
    30573064  change_code[10] = '\0';
     3065
     3066  /* --- Directories special case ---
     3067   */
     3068  if (p->theFile.c_mode[0] == 'd'                               &&
     3069      0 == (modi_mask & ~(MODI_SIZ|MODI_ATM|MODI_CTM|MODI_MTM)) &&
     3070      sh_loosedircheck == S_TRUE)
     3071    {
     3072      modi_mask = 0;
     3073    }
    30583074
    30593075  /* --- Report full details. ---
Note: See TracChangeset for help on using the changeset viewer.