patch-init_c 864 B

12345678910111213141516171819202122232425262728293031323334
  1. $OpenBSD: patch-init_c,v 1.1 2002/08/10 01:14:04 naddy Exp $
  2. --- init.c.orig Sun Sep 23 18:09:04 2001
  3. +++ init.c Fri Aug 2 23:11:23 2002
  4. @@ -121,8 +121,8 @@ drop_privs (void)
  5. struct passwd *pw;
  6. struct group *gr;
  7. - n = strtol (USE_GID, &p, 10);
  8. - if (p)
  9. + n = strtoul (USE_GID, &p, 10);
  10. + if (*p)
  11. {
  12. /* probably a string */
  13. gr = getgrnam (USE_GID);
  14. @@ -139,8 +139,8 @@ drop_privs (void)
  15. return -1;
  16. }
  17. - n = strtol (USE_UID, &p, 10);
  18. - if (p)
  19. + n = strtoul (USE_UID, &p, 10);
  20. + if (*p)
  21. {
  22. /* probably a string */
  23. pw = getpwnam (USE_UID);
  24. @@ -317,6 +317,7 @@ init_server (void)
  25. hash_set_hash_func (File_Table, hash_string, hash_compare_string);
  26. #if RESUME
  27. MD5 = hash_init (4001, 0);
  28. + hash_set_hash_func (MD5, hash_string, hash_compare_string);
  29. #endif
  30. load_bans ();
  31. load_block ();