From 8567df0b6d5eba0a56e066292b667f719c3a2868 Mon Sep 17 00:00:00 2001 From: flatcap Date: Thu, 11 Aug 2005 13:53:08 +0000 Subject: [PATCH] display year in long listing --- ntfsprogs/ntfsls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ntfsprogs/ntfsls.c b/ntfsprogs/ntfsls.c index 6b6e0824..49dc3ef0 100644 --- a/ntfsprogs/ntfsls.c +++ b/ntfsprogs/ntfsls.c @@ -551,7 +551,8 @@ static int list_dir_entry(ntfsls_dirent * dirent, const ntfschar * name, ntfs_time = ntfs2utc(sle64_to_cpu( file_name_attr->last_data_change_time)); strcpy(t_buf, ctime(&ntfs_time)); - t_buf[16] = '\0'; + memmove(t_buf+16, t_buf+19, 5); + t_buf[21] = '\0'; if (dt_type != NTFS_DT_DIR) { if (!ntfs_attr_lookup(AT_DATA, AT_UNNAMED, 0, 0, 0,