| Make mtime access in dir listing compatible to other platforms but linux. - geo… | |
| git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| LICENSE | |
| --- | |
| commit 8b9629bd2a0dae917cbe7e7db44417afc28064f6 | |
| parent 1f4c222dd84b3f7ee0fa068a21a50fcf47104000 | |
| Author: Christoph Lohmann <[email protected]> | |
| Date: Sun, 9 Oct 2022 22:11:27 +0200 | |
| Make mtime access in dir listing compatible to other platforms but linux. | |
| Diffstat: | |
| M handlr.c | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| --- | |
| diff --git a/handlr.c b/handlr.c | |
| @@ -71,7 +71,7 @@ handledir(int sock, char *path, char *port, char *base, char … | |
| *type->type, | |
| dirent[i]->d_name, | |
| humansize(st.st_size), | |
| - humantime(&(st.st_mtim.tv_sec)), | |
| + humantime(&(st.st_mtime)), | |
| e, ohost, port); | |
| free(file); | |
| free(dirent[i]); |