Changeset 254 for trunk/src/sh_files.c


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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.