Changeset 117 for trunk


Ignore:
Timestamp:
Aug 22, 2007, 9:55:05 PM (17 years ago)
Author:
rainer
Message:

Fix for ticket #73 (yulectl rejects 14 char password).
--This line, and th se below, will be ignored--

M src/yulectl.c
M docs/Changelog

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r115 r117  
    112.3.6:
    2         * introduce 'fflags' flag for suid files to detect new files already found
    3           in regular file check (problem reported by J. Crutchfield); also add
    4           regression test to ascertain that files in baseline database are not
    5           quarantined erroneously
     2        * fix yulectl password reading from $HOME/.yulectl_cred, erroneously
     3          rejected passwords with exactly 14 chars (reported by Jerry Brown)
     4        * introduce 'fflags' flag for suid files to detect new files already
     5          found in regular file check (problem reported by J. Crutchfield);
     6          also add regression test to ascertain that files in baseline
     7          database are not quarantined erroneously
    68        * sh_hash.c: replace check for prefix 'K' with check for not prefix'/'
    79          to allow for arbitrary module-specific store/lookup in db
  • trunk/src/yulectl.c

    r98 r117  
    334334}
    335335
     336char * rtrim(char * str)
     337{
     338  size_t len;
     339
     340  if (!str)
     341    return str;
     342
     343  len = strlen(str);
     344  while (len > 0)
     345    {
     346      --len;
     347      if (str[len] == '\n' || str[len] == '\r')
     348        str[len] = '\0';
     349      else
     350        break;
     351    }
     352   
     353  return str;
     354}
     355
    336356void fixup_message (char * message)
    337357{
     
    399419      exit(EXIT_FAILURE);
    400420    }
     421
     422  (void) rtrim(message2);
     423
    401424  if (strlen(message2) > 14)
    402425    {
     
    406429    }
    407430
    408   if ( (0 != strlen(message2)) && ('\n' == message2[strlen(message2)-1]))
    409     {
    410       message2[strlen(message2)-1] = '\0';
    411     }
    412431  strcpy(password, message2);
    413432  fclose(fp);
     433
    414434 do_msg:
    415435  strcat(message2, "@");
Note: See TracChangeset for help on using the changeset viewer.