Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2005 09:06:45 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/xargs xargs.c
Message-ID:  <200512310906.jBV96jiU041419@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jmallett    2005-12-31 09:06:45 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/xargs        xargs.c 
  Log:
  Check the entire length of the current argument for the EOF string with -E,
  but don't expect a proper ASCII string to exist right here right now, don't
  use strcmp(3) which checks for a NUL.  As we're still building the argument
  up, the next character might be garbage.  It would probably be just as safe to
  temporarily write a NUL there, but if we've reached the end of argument memory
  that might not be the best idea, I think.  It's unclear.
  
  Doing it this way seems to meet the most with the original intent.
  
  PR:             85696
  Prodded by:     stefanf
  
  Revision  Changes    Path
  1.60      +1 -1      src/usr.bin/xargs/xargs.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512310906.jBV96jiU041419>