home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume27 / xinetd-2.1.1 / patch02 next >
Text File  |  1993-11-18  |  3KB  |  105 lines

  1. Newsgroups: comp.sources.unix
  2. From: panos@cs.colorado.edu (Panos Tsirigotis)
  3. Subject: v27i087: xinetd-2.1.1 - inetd replacement with access control and logging, Patch02
  4. Sender: unix-sources-moderator@gw.home.vix.com
  5. Approved: vixie@gw.home.vix.com
  6.  
  7. Submitted-By: panos@cs.colorado.edu (Panos Tsirigotis)
  8. Posting-Number: Volume 27, Issue 87
  9. Archive-Name: xinetd-2.1.1/patch02
  10.  
  11. Here is Patch02 for xinetd (which appeared in volume26 of comp.sources.unix).
  12.  
  13. Panos
  14.  
  15. ______________________________________________________________________
  16.  
  17.  
  18. 1. What this patch fixes
  19.  
  20. only_from/no_access addresses would get inverted on little-endian
  21. machines when such addresses were specified using the numeric notation
  22. (for example, 128.138.45.3 would become 3.45.138.128). This bug was in
  23. the numeric_addr function which did not convert the result of inet_addr
  24. to host-byte-order.  A work around for the bug would be to use the
  25. factorized address notation (for example, 128.138.45.{3})
  26.  
  27.  
  28. 2. How to apply this patch
  29.  
  30. Cd to the xinetd directory and use the command:
  31.     patch < "name of this file"
  32. This patch will modify the files
  33.     Makefile
  34.     CHANGELOG
  35.     addr.c
  36.  
  37. The VERSION variable in the Makefile will be changed to 2.1.3.
  38. You will need to recompile xinetd after applying this patch.
  39. The accompanying libraries are *not* affected by this patch.
  40.  
  41.  
  42.  
  43. Prereq: 2.1.2
  44.  
  45. *** /tmp/rt/xinetd/Makefile    Tue Nov  9 18:47:48 1993
  46. --- Makefile    Tue Nov  9 19:16:48 1993
  47. ***************
  48. *** 21,31 ****
  49.   #        checkout     --> checkout all files
  50.   #
  51.   
  52. - #
  53. - # The following variables must be set by you
  54. - #
  55.   NAME                    = xinetd
  56. ! VERSION                = 2.1.2
  57.   
  58.   #
  59.   # Possible flags that can be defined in DEFS:
  60. --- 21,28 ----
  61.   #        checkout     --> checkout all files
  62.   #
  63.   
  64.   NAME                    = xinetd
  65. ! VERSION                = 2.1.3
  66.   
  67.   #
  68.   # Possible flags that can be defined in DEFS:
  69. *** /tmp/rt/xinetd/CHANGELOG    Tue Nov  9 18:47:48 1993
  70. --- CHANGELOG    Tue Nov  9 18:56:15 1993
  71. ***************
  72. *** 87,89 ****
  73. --- 87,98 ----
  74.               of the fcntl() call would be harmless if 'fd' happened to
  75.               refer to an open descriptor).
  76.   
  77. + 2.1.3:
  78. +     Bug fix:
  79. +         only_from/no_access addresses would get inverted on little-endian
  80. +         machines when such addresses were specified using the numeric notation
  81. +         (for example, 128.138.45.3). This bug was in the numeric_addr function
  82. +         which did not convert the result of inet_addr to host-byte-order.
  83. +         A work around for the bug would be to use the factorized address 
  84. +         notation (for example, 128.138.45.{3})
  85. *** /tmp/rt/xinetd/addr.c    Tue Nov  9 18:45:00 1993
  86. --- addr.c    Tue Nov  9 18:51:50 1993
  87. ***************
  88. *** 250,256 ****
  89.       register unsigned long mask ;
  90.       struct comp_addr ca ;
  91.   
  92. !     addr = inet_addr( str_addr ) ;
  93.       if ( addr == (unsigned long) -1 )
  94.           return( CANT_PARSE ) ;
  95.   
  96. --- 250,256 ----
  97.       register unsigned long mask ;
  98.       struct comp_addr ca ;
  99.   
  100. !     addr = ntohl( inet_addr( str_addr ) ) ;
  101.       if ( addr == (unsigned long) -1 )
  102.           return( CANT_PARSE ) ;
  103.   
  104.