Page 1 of 1

Why are there zero-length files included in the downloads?

PostPosted: 23.05.2017, 21:14
by newton51
As per Windows WSUS service, this shouldn't occur (at least anymore):
https://blogs.technet.microsoft.com/wsu ... xport-bug/

Can anyone at this service comment on why these files are occurring?

Re: Why are there zero-length files included in the download

PostPosted: 23.05.2017, 21:57
by boco
WSUS Offline Update is completely unrelated to the WSUS provided by Microsoft. We only make use of the same catalog.

Re: Why are there zero-length files included in the download

PostPosted: 24.05.2017, 16:12
by newton51
Thanks for the follow up.

I guess I could have been more overt with my questioning. What is the need for these zero-length files? Do they really serve a purpose for the updates?

Case in point, I did not enable any Office updates, but these zero-length files (among others) are downloaded:
./wsusoffline/client/static/StaticUpdateIds-o2k10.txt
./wsusoffline/client/static/StaticUpdateIds-o2k13.txt
./wsusoffline/client/static/StaticUpdateIds-o2k16.txt
./wsusoffline/client/static/StaticUpdateIds-o2k7.txt

Re: Why are there zero-length files included in the download

PostPosted: 24.05.2017, 20:08
by boco
Ah, yes, those. Placeholders. WOU uses commandline downloaders (like wget) to get the files. It refreshes the static definitions by downloading them from this site. That prevents the need to release a new version, every time static links change.
The important thing to know is: wget can only download, it cannot delete. So, the only way to effectively kill a file (that previously might have had contents that are now obsolete) is to download an empty file over it.
Otherwise, no file or zero-Byte file makes no difference.

Note that all static definitions will be refreshed, independent from your actual OS selection.


Follow-up: There's also a historical reason for placeholder files in archives: Some unpackers won't restore empty directories unless there is at least one file inside it. So, if restoring the directory structure is important, placeholders will ensure all directories are extracted.