cvs commit: src/etc/rc.d amd

Mike Makonnen mtm at FreeBSD.org
Sun Oct 28 13:07:30 PDT 2007


mtm         2007-10-28 20:07:29 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    etc/rc.d             amd 
  Log:
  MFC: rev. 1.19 and 1.20
     The amd_map_program knob can potentially contain a command whose output
     is then used as an argument to the amd program. This outpu may contain
     newlines, but the script did not take care to strip those newlines before
     apending it to rc_flags. Revision 1.72 of rc.subr(8) introduced changes that
     exposed this problem (specifically putting the final eval'ed command in
     quotes).[1]
  
     Also, for correctness' sake, shell directives appended to the command-line
     by the script should go into command_args, and not appended directly
     to rc_flags.
  
  Approved by: re (kensmith)
  
  Revision  Changes    Path
  1.18.2.1  +3 -2      src/etc/rc.d/amd


More information about the cvs-src mailing list