Make mtime access in dir listing compatible to other platforms but linux. - geomyidae - A small C-based gopherd.
HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 8b9629bd2a0dae917cbe7e7db44417afc28064f6
DIR parent 1f4c222dd84b3f7ee0fa068a21a50fcf47104000
HTML Author: Christoph Lohmann <20h@r-36.net>
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(-)
---
DIR diff --git a/handlr.c b/handlr.c
@@ -71,7 +71,7 @@ handledir(int sock, char *path, char *port, char *base, char *args,
*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]);