Changeset 381 for trunk/src/sh_unix.c


Ignore:
Timestamp:
Dec 2, 2011, 11:18:23 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #279 (checksum flip with --enable-suidcheck).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_unix.c

    r379 r381  
    36433643  SL_ENTER(_("sh_unix_getinfo"));
    36443644
     3645  if (!MODI_INITIALIZED(theFile->check_mask))
     3646    {
     3647      tmp2 = sh_util_safe_name (theFile->fullpath);
     3648      SH_MUTEX_LOCK(mutex_thread_nolog);
     3649      sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_E_SUBGPATH,
     3650                       _("Uninitialized check mask"), _("sh_unix_getinfo"),
     3651                       tmp2);
     3652      SH_MUTEX_UNLOCK(mutex_thread_nolog);
     3653      SH_FREE(tmp2);
     3654    }
     3655
    36453656  /* Take the address to keep gcc from putting it into a register.
    36463657   * Avoids the 'clobbered by longjmp' warning.
     
    38083819              sl_strlcpy(fileHash, SH_KEY_NULL, KEY_LEN+1);
    38093820            }
    3810           else if ((theFile->check_mask & MODI_PREL) != 0 && 
     3821          else if ((theFile->check_mask & MODI_PREL) != 0 &&
    38113822                   S_TRUE == sh_prelink_iself(rval_open, fbuf.st_size,
    38123823                                              alert_timeout, theFile->fullpath))
Note: See TracChangeset for help on using the changeset viewer.