Wireshark-commits: [Wireshark-commits] master-2.0 7ef4796: On UN*X, st_ctime is the last status cha
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=7ef4796ba9e1f41242ab737aad26f81bb62a4eaa
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark
Commits:
7ef4796 by Guy Harris (guy@xxxxxxxxxxxx):
On UN*X, st_ctime is the last status change time, not the creation time.
That's the time the file's inode last changed, so size changes,
permission changes, etc. affect it. It's *not* the time the file was
created; most UN*Xes don't provide that. Newer versions of FreeBSD,
NetBSD, OpenBSD, and macOS do, but other UN*Xes don't appear to.
On Windows, at least according to Microsoft's documentation, st_ctime
*is* the creation time. Hopefully that's not the result of confusion on
the part of somebody at Microsoft.
Change-Id: I9e91cc562582bec46d42589f134eb8561dbb5f40
Reviewed-on: https://code.wireshark.org/review/18381
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from bdf6ec3 Suppress "discarding const" warning.
adds 7ef4796 On UN*X, st_ctime is the last status change time, not the creation time.
Summary of changes:
ConfigureChecks.cmake | 8 +++++---
cmakeconfig.h.in | 6 ++++++
configure.ac | 6 ++++++
fileset.c | 24 ++++++++++++++++++++++++
ui/gtk/fileset_dlg.c | 28 +++++++++++++++++++---------
ui/qt/file_set_dialog.cpp | 14 ++++++++++++--
6 files changed, 72 insertions(+), 14 deletions(-)