[Bug 224426] fetch -i runs in an endless loop

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 18 15:29:32 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224426

            Bug ID: 224426
           Summary: fetch -i runs in an endless loop
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: wosch at FreeBSD.org

I wanted to try out the -i option of the fetch(1) command for the build of our
website.

     -i file, --if-modified-since=file
                 If-Modified-Since mode: the remote file will only be
                 retrieved if it is newer than file on the local host.  (HTTP
                 only)

I also had the -a option in use. I run into an endless loop.

how to repeat:

# first run, file is not up-to-date
$ touch index.html
$ time fetch -a -o index.html -i index.html https://www.FreeBSD.org 

real    0m0.887s
user    0m0.019s
sys     0m0.016s

# second run, file is up-to-date
$ time fetch -a -o index.html -i index.html https://www.FreeBSD.org
time fetch -a -o index.html -i index.html https://www.FreeBSD.org         
fetch: https://www.FreeBSD.org: Not Modified
fetch: https://www.FreeBSD.org: Not Modified
fetch: https://www.FreeBSD.org: Not Modified
fetch: https://www.FreeBSD.org: Not Modified
fetch: https://www.FreeBSD.org: Not Modified
fetch: https://www.FreeBSD.org: Not Modified
fetch: https://www.FreeBSD.org: Not Modified
fetch: https://www.FreeBSD.org: Not Modified
fetch: https://www.FreeBSD.org: Not Modified
fetch: https://www.FreeBSD.org: Not Modified
^C

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list