cvs commit: src/usr.bin/tar tree.c

Peter Edwards peadar at FreeBSD.org
Wed Feb 22 03:13:09 PST 2006


peadar      2006-02-22 11:13:08 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/tar          tree.c 
  Log:
  If opendir(".") fails after descending into a subdirectory via
  chdir(), be sure to undo the effects of the chdir before continuing.
  
  Without this, after hitting a directory with mode 0111 (for example),
  tar will get lost, and won't add any yet unvisted files to your
  archive.  (Or possibly add the wrong files, I suppose...)
  
  Reviewed By: kientzle@
  
  Revision  Changes    Path
  1.3       +2 -1      src/usr.bin/tar/tree.c


More information about the cvs-all mailing list