home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / unix / volume26 / kit / pch28 < prev    next >
Encoding:
Text File  |  1993-05-04  |  3.8 KB  |  126 lines

  1. Newsgroups: comp.sources.unix
  2. From: ram@acri.fr (Raphael Manfredi)
  3. Subject: v26i229: kit - the ultimate mailing kit, Patch28
  4. Sender: unix-sources-moderator@efficacy.home.vix.com
  5. Approved: WhoAmI@efficacy.home.vix.com
  6.  
  7. Submitted-By: ram@acri.fr (Raphael Manfredi)
  8. Posting-Number: Volume 26, Issue 229
  9. Archive-Name: kit/pch28
  10.  
  11. [The latest patch for kit version 2.0 is #28.]
  12.  
  13. System: kit version 2.0
  14. Patch #: 28
  15. Priority: HIGH
  16. Subject: fixed annoying typo (caused undefined-subroutine error!)
  17. Subject: after a chmod, quotes surrounding file name are optional
  18. Date: Tue Apr 27 10:07:11 MET DST 1993
  19. From: Raphael Manfredi <ram@acri.fr>
  20.  
  21. Description:
  22.     Fixed the 'secure' perl script that performs security checks on
  23.     the shell archive. If had an annoying typo and did not recognize
  24.     the 'chmod +x filename' construct which the built-in shar uses.
  25.  
  26. Repeat-By:
  27.  
  28.     Send yourself a kit package with the -M option and when extracting
  29.     the kit part containing the 'minikit' script, watch unkit die on
  30.     what it thinks is a security breakthrough.. If you do not have
  31.     perl however, this bug cannot be reproduced since security checks
  32.     are by-passed.
  33.  
  34. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your kit source
  35.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  36.     If you don't have the patch program, apply the following by hand,
  37.     or get patch (version 2.0, latest patchlevel).
  38.  
  39.     After patching:
  40.         Configure -d
  41.         make
  42.         make install
  43.  
  44.     If patch indicates that patchlevel is the wrong version, you may need
  45.     to apply one or more previous patches, or the patch may already
  46.     have been applied.  See the patchlevel.h file to find out what has or
  47.     has not been applied.  In any event, don't continue with the patch.
  48.  
  49.     If you are missing previous patches they can be obtained from me:
  50.  
  51.         Raphael Manfredi <ram@acri.fr>
  52.  
  53.     If you send a mail message of the following form it will greatly speed
  54.     processing:
  55.  
  56.         Subject: Command
  57.         @SH mailpatch PATH kit 2.0 LIST
  58.                ^ note the c
  59.  
  60.     where PATH is a return path FROM ME TO YOU either in Internet notation,
  61.     or in bang notation from some well-known host, and LIST is the number
  62.     of one or more patches you need, separated by spaces, commas, and/or
  63.     hyphens.  Saying 35- says everything from 35 to the end.
  64.  
  65.     To get some more detailed instructions, send me the following mail:
  66.  
  67.         Subject: Command
  68.         @SH mailhelp PATH
  69.  
  70.  
  71. Index: patchlevel.h
  72. Prereq: 27
  73. 2c2
  74. < #define PATCHLEVEL 27
  75. ---
  76. > #define PATCHLEVEL 28
  77.  
  78. Index: kit/secure
  79. Prereq: 2.0.1.3
  80. *** kit/secure.old    1993/04/26 11:20:27
  81. --- kit/secure    1993/04/27 08:07:07
  82. ***************
  83. *** 1,8 ****
  84.   #!/usr/bin/perl
  85.   
  86. ! # $Id: secure,v 2.0.1.3 1993/04/26 11:20:27 ram Exp $
  87.   #
  88.   # $Log: secure,v $
  89.   # Revision 2.0.1.3  1993/04/26  11:20:27  ram
  90.   # patch27: added support for kit's own archiver variables
  91.   # patch27: will now skip leading comments in kit parts (when concatenated)
  92. --- 1,12 ----
  93.   #!/usr/bin/perl
  94.   
  95. ! # $Id: secure,v 2.0.1.4 1993/04/27 08:07:07 ram Exp $
  96.   #
  97.   # $Log: secure,v $
  98. + # Revision 2.0.1.4  1993/04/27  08:07:07  ram
  99. + # patch28: fixed annoying typo (caused undefined-subroutine error!)
  100. + # patch28: after a chmod, quotes surrounding file name are optional
  101. + #
  102.   # Revision 2.0.1.3  1993/04/26  11:20:27  ram
  103.   # patch27: added support for kit's own archiver variables
  104.   # patch27: will now skip leading comments in kit parts (when concatenated)
  105. ***************
  106. *** 63,70 ****
  107.           next if m|^/dev/null ark\d+isdone$|;
  108.           &error;
  109.       } elsif (s/^chmod //) {
  110. !         next if m|^\+x '[\w.]+'$|;
  111. !         &erorr;
  112.       } elsif (s/^for (.*); do\s*$/$1/) {
  113.           &loose_check;
  114.       } elsif (s/^>>\s?//) {    # Kit leading comments
  115. --- 67,74 ----
  116.           next if m|^/dev/null ark\d+isdone$|;
  117.           &error;
  118.       } elsif (s/^chmod //) {
  119. !         next if m|^\+x '?[\w.]+'?$|;    # Quotes for cshar only
  120. !         &error;
  121.       } elsif (s/^for (.*); do\s*$/$1/) {
  122.           &loose_check;
  123.       } elsif (s/^>>\s?//) {    # Kit leading comments
  124.  
  125. *** End of Patch 28 ***
  126.