cvs commit: src/usr.bin/xargs xargs.c

Juli Mallett jmallett at FreeBSD.org
Sat Dec 31 01:06:46 PST 2005


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


More information about the cvs-all mailing list