Changeset 406


Ignore:
Timestamp:
Aug 21, 2012, 7:24:02 PM (12 years ago)
Author:
katerina
Message:

Fix for ticket #308 (Spurious lstat() error messages during suid check).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_suidchk.c

    r405 r406  
    11361136        if (tlen >= 6 && 0 == strcmp(&tmp[tlen-6], _("/.gvfs")))
    11371137          elevel = SH_ERR_NOTICE;
     1138
     1139        /* If we are scanning a temporary directory where dirs and files
     1140         * can be created/deleted, an lstat() error is something which
     1141         * may occur frequently. As a missing dir/file is not an important
     1142         * problem for the suidcheck, the error level is only SH_ERR_NOTICE.
     1143         */
     1144        if (status == ENOENT)
     1145          elevel = SH_ERR_NOTICE;
     1146
    11381147        SH_MUTEX_LOCK(mutex_thread_nolog);
    11391148        sh_error_handle (elevel, FIL__, __LINE__, status, MSG_ERR_LSTAT,
Note: See TracChangeset for help on using the changeset viewer.