Changeset 254


Ignore:
Timestamp:
Oct 25, 2009, 8:41:32 PM (15 years ago)
Author:
katerina
Message:

Fix for ticket #171 (..namedfork/rsrc deprecated on Mac OS X).

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/sh_files.h

    r138 r254  
    5353int sh_files_check_hardlinks (const char * opt);
    5454
     55/* check  rsrc fork (Mac OS X)
     56 */
     57int sh_files_use_rsrc(const char * str);
     58
    5559/* set recursion depth
    5660 */
  • trunk/src/sh_files.c

    r242 r254  
    19411941int get_the_fd (SL_TICKET ticket);
    19421942
     1943static int sh_use_rsrc = S_FALSE;
     1944
     1945int sh_files_use_rsrc(const char * str)
     1946{
     1947  return sh_util_flagval(str, &sh_use_rsrc);
     1948}
    19431949
    19441950static ShFileType sh_files_filecheck (int class, char * dirName,
     
    21022108    }
    21032109 
    2104 #ifdef HOST_IS_DARWIN
     2110#if defined(HOST_IS_DARWIN)
    21052111  /*
    21062112   * Check for resource fork
    21072113   */
    2108   if ( (theFile->c_mode[0] != 'd') && (rsrcflag == 0) )
     2114  if ( (sh_use_rsrc == S_TRUE) && (theFile->c_mode[0] != 'd') && (rsrcflag == 0) )
    21092115    {
    21102116      int  dummy;
  • trunk/src/sh_readconf.c

    r248 r254  
    946946  { N_("usehardlinkcheck"),   SH_SECTION_MISC,   SH_SECTION_NONE,
    947947    sh_files_check_hardlinks },
     948  { N_("usersrccheck"),       SH_SECTION_MISC,   SH_SECTION_NONE,
     949    sh_files_use_rsrc },
    948950  { N_("hardlinkoffset"),     SH_SECTION_MISC,   SH_SECTION_NONE,
    949951    sh_files_hle_reg },
Note: See TracChangeset for help on using the changeset viewer.