Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Sep 2001 08:17:15 -0700 (PDT)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/fetch fetch.c
Message-ID:  <200109081517.f88FHFL06609@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
des         2001/09/08 08:17:15 PDT

  Modified files:
    usr.bin/fetch        fetch.c 
  Log:
  If the local file does not exist, or is a regular file, and we're not trying
  to resume a transfer, download the requested document into a temporary file
  which we later rename.  This avoids leaving half-completed files around in
  case of a crash (it'll still leave a half-completed file, but with a  hope-
  fully non-conflicting name), and should reduce the need for human inter-
  vention on ports-building machines.
  
  The temporary file name for "foo/bar" is constructed by invoking mkstemps()
  with the pattern "foo/.fetch.XXXXXX.bar"
  
  Requested by:	obrien
  
  Revision  Changes    Path
  1.38      +72 -28    src/usr.bin/fetch/fetch.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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