Changeset 61 for trunk/src


Ignore:
Timestamp:
Sep 11, 2006, 10:31:56 PM (18 years ago)
Author:
rainer
Message:

Fix for MacOX X problems and Cygwin compile problem, resolves tickets #33, #34, #35.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_files.c

    r46 r61  
    721721
    722722  SL_ENTER(_("sh_files_globerr"));
     723
     724  if (errnum == ENOTDIR || errnum == ENOENT)
     725    {
     726      SL_RETURN(0, _("sh_files_globerr"));
     727    }
    723728
    724729  p = sh_util_safe_name (epath);
     
    20682073      if (sl_strlen(testpath) == (17 + sl_strlen(fullpath)))
    20692074        {
    2070           if (0 == sh_unix_file_stat (testpath))
     2075          if (0 != sh_unix_file_stat (testpath))
    20712076            {
    20722077              sh_files_filecheck (class, fullpath, rsrc, &dummy, 1);
  • trunk/src/sh_suidchk.c

    r55 r61  
    521521               0 != strcmp(tmpcat, ShSuidchkExclude)))
    522522            {
    523               /* fs is a STATIC string
     523              /* fs is a STATIC string or NULL
    524524               */
    525525              fs = filesystem_type (tmpcat, tmpcat, &buf);
     
    17711771          /* check for the "nosuid" option
    17721772           */
     1773#ifdef HAVE_HASMNTOPT
    17731774          if (NULL == hasmntopt(mnt, "nosuid"))
    17741775            type = mnt->mnt_type;
    17751776          else
    1776             type = _("nosuid");
     1777            type = _("nosuid"); /* hasmntopt (nosuid) */
     1778#else
     1779          type = mnt->mnt_type;
     1780#endif
    17771781        }
    17781782    }
Note: See TracChangeset for help on using the changeset viewer.