Debian Patches
Status for publicfile/0.52-14
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| errno.patch | deal with the errno integer variable Without this patch, linking the auto-str binary to substdio.a, error.a and str.a fails: gcc -s -o auto-str auto-str.o substdio.a error.a str.a gives /usr/bin/ld: errno: TLS definition in /lib/x86_64-linux-gnu/libc.so.6 section .tbss mismatches non-TLS reference in substdio.a(substdo.o) /lib/x86_64-linux-gnu/libc.so.6: error adding symbols: Bad value collect2: error: ld returned 1 exit status Downloaded from http://djbware.csi.hu/patches/publicfile-0.52.errno.patch as linked to from http://qmail.mirrors.hebergeur.be/top.html#patches and http://qmail.org/ diff -u publicfile-0.52.old/error.h publicfile-0.52/error.h |
mw@csi.hu | no | 2002-01-14 | ||
| filetype.patch | File Types from the Environment Out of the box, publicfile serves content using a hardcoded mapping from file extension to MIME type. The mapping was chosen in the late 90s, and is missing most modern content types. (It also has some idiosyncracies, such as requiring JPEG files to be named .jpeg instead of the more common .jpg.) . Uwe Ohse fixed this with a patch that teaches publicfile to consult its environment, instead. If it finds an unknown file extension .ext, it looks for an environment variable called CT_ext. If it exists, publicflie will use its contents as the MIME type. . Since djb’s daemontools provide a program, envdir, that configures a program’s environment using files in a directory, you can now create your content mapping as a directory of small text files instead of having to modify publicfile itself. . (taken verbatim from https://cliffle.com/blog/publicfile-patches/, by Cliff L. Biffle.) . The patch is linked to from https://www.ohse.de/uwe/patches.html , on that page it says: "Allows publicfile to guess the MIME content type of a file. Description: If the file extension is ".xY", then the content of the environment variable "CT_xY" be used to determine the file type. If this is not found then "text/plain" will be used. 1999-12-06. Seems to work." diff -u publicfile-0.52.old/filetype.c publicfile-0.52/filetype.c |
Uwe Ohse | no | https://www.ohse.de/uwe/patches/publicfile-0.52-filetype-diff | ||
| implicit-int.patch | Fix implicit-int warning | Bastian Germann | no |
All known versions for source package 'publicfile'
- 0.52-14 (sid)
