simon-budig / woof

an ad-hoc single file webserver
120 stars 17 forks source link

Clarification: -Z zipped tarball OR actual zip file? #2

Closed fancsali closed 3 years ago

fancsali commented 3 years ago

I think I've spotted something in the help/documentation on Debian; the manpage says:

       -Z <dir>
              Used on a directory, it creates a tarball with ZIP compression

However, I am fairly confident, that would actually create a proper zip archive file. Otherwise this is a kind of a trap for people if they share files with non-*nix users.

CoolCat467 commented 3 years ago

When a directory is specified, an tar archive gets served. By default it is gzip compressed. You can specify -z for gzip compression, -j for bzip2 compression, -Z for ZIP compression or -u for no compression.

In the program itself, it says -Z is for ZIP compression, and -z is for gzip compression. Documentation appears go be correct then, saying that -Z is for ZIP compression.

simon-budig commented 3 years ago

Yeah, that is a mis-wording. Thanks for spotting.

Will look into this.

simon-budig commented 3 years ago

This is apparently a problem with the debian packaging, the word "tarball" does not appear in this repository, maybe they generated the man page from some older version.

Please report this against the debian package.

Thanks!