Changeset 317 for trunk/src/sh_suidchk.c


Ignore:
Timestamp:
Mar 15, 2011, 8:54:21 PM (14 years ago)
Author:
katerina
Message:

Further refinements for lstat in subprocess (ticket #236).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_suidchk.c

    r257 r317  
    193193/* Recursively descend into the directory to make sure that
    194194 * there is no symlink in the path.
     195 *
     196 * Use retry_lstat_ns() here because we cannot chdir the subprocess
     197 * that does the lstat().
    195198 */
    196199static int do_truncate_int (char * path, int depth)
     
    226229    {
    227230      *q = '\0';
    228       if (0 != retry_lstat(FIL__, __LINE__, path, &one))
     231      if (0 != retry_lstat_ns(FIL__, __LINE__, path, &one))
    229232        {
    230233          SH_MUTEX_LOCK(mutex_thread_nolog);
     
    260263        }
    261264      *q = '/';
    262       if (0 != retry_lstat(FIL__, __LINE__, ".", &two))
     265      if (0 != retry_lstat_ns(FIL__, __LINE__, ".", &two))
    263266        {
    264267          sh_error_handle ((-1), FIL__, __LINE__, errno,
     
    288291      if (*path == '\0')
    289292        return -1;
    290       if (0 != retry_lstat(FIL__, __LINE__, path, &one))
     293      if (0 != retry_lstat_ns(FIL__, __LINE__, path, &one))
    291294        {
    292295          SH_MUTEX_LOCK(mutex_thread_nolog);
Note: See TracChangeset for help on using the changeset viewer.