wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wget-dev] wget2 | chunk-size doesn't trunc file before writing on it (#


From: DalmeGNU
Subject: [Wget-dev] wget2 | chunk-size doesn't trunc file before writing on it (#463)
Date: Mon, 19 Aug 2019 10:32:28 +0000


DalmeGNU created an issue:


  While running the following code on the test suite:
```
wget_test(
                WGET_TEST_KEEP_TMPFILES, 1,
                WGET_TEST_OPTIONS, "--chunk-size=2",
                WGET_TEST_REQUEST_URL, "dummy.txt",
                WGET_TEST_EXPECTED_ERROR_CODE, 0,
                WGET_TEST_EXISTING_FILES, &(wget_test_file_t []) {
                        {       "dummy.txt", "anycontent", 1097310600 },
                        {       NULL } },
                WGET_TEST_EXPECTED_FILES, &(wget_test_file_t []) {
                        {       "dummy.txt", urls[0].body, 1097310600 },
                        {       NULL } },
                0);
```

Where `dummy.txt` is the one at `test-wget-1.c`. It only happens when 
chunk-size is lower than file size, e.g. with chunk-size=20 works fine. This 
bug is present on branch master.

dummy.txt content at the server is "Don't care." but the one found at the test 
directory is "anycontent."

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/issues/463
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]