Changeset 29 for trunk/src/sh_utils.c


Ignore:
Timestamp:
Apr 11, 2006, 1:48:18 PM (14 years ago)
Author:
rainer
Message:

Fixes for test suite, OpenBSD portability, self-resolving, and suidchk patch by Neil

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_utils.c

    r25 r29  
    13401340  char * endptr = NULL;
    13411341
    1342   SL_ENTER(_("sh_util_obscure_ex"));
     1342  SL_ENTER(_("sh_util_obscure_ok"));
    13431343
    13441344  if (0 == sl_strncmp("all", str, 3))
     
    13481348          sh_obscure_index[i] = (unsigned char)1;
    13491349        }
    1350       SL_RETURN(0, _("sh_util_obscure_ex"));
     1350      SL_RETURN(0, _("sh_util_obscure_ok"));
    13511351    }
    13521352
     
    13591359  if (i > 255)
    13601360    {
    1361       SL_RETURN(-1, _("sh_util_obscure_ex"));
     1361      SL_RETURN(-1, _("sh_util_obscure_ok"));
    13621362    }
    13631363  sh_obscure_index[i] = (unsigned char)1;
     
    13701370      if (i > 255)
    13711371        {
    1372           SL_RETURN(-1, _("sh_util_obscure_ex"));
     1372          SL_RETURN(-1, _("sh_util_obscure_ok"));
    13731373        }
    13741374      sh_obscure_index[i] = (unsigned char)1;
     
    13761376        ++endptr;
    13771377    }
    1378   SL_RETURN(0, _("sh_util_obscure_ex"));
     1378  SL_RETURN(0, _("sh_util_obscure_ok"));
    13791379}
    13801380
    13811381int sh_util_obscurename (ShErrLevel level, char * name_orig, int flag)
    13821382{
    1383   char * name = name_orig;
     1383  unsigned char * name = (unsigned char *) name_orig;
    13841384  char * safe;
    13851385  unsigned int i;
     
    13931393  while (*name != '\0')
    13941394    {
    1395       if ( (*name) == '"'  || (*name) == '\t' ||
     1395      if ( (*name) >  0x7F || (*name) == '"'  || (*name) == '\t' ||
    13961396           (*name) == '\b' || (*name) == '\f' ||
    13971397           (*name) == '\n' || (*name) == '\r' ||
Note: See TracChangeset for help on using the changeset viewer.