If you set CONFIG_FEATURE_STAT_FORMAT=n, two of the three printed
times are wrong, because a global buffer is reused. Fix below.
Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
# if ENABLE_SELINUX
printf(" S_Context: %lc\n", *scontext);
# endif
- printf("Access: %s\n" "Modify: %s\n" "Change: %s\n",
- human_time(statbuf.st_atime),
- human_time(statbuf.st_mtime),
- human_time(statbuf.st_ctime));
+ printf("Access: %s\n", human_time(statbuf.st_atime));
+ printf("Modify: %s\n", human_time(statbuf.st_mtime));
+ printf("Change: %s\n", human_time(statbuf.st_ctime));
}
#endif /* FEATURE_STAT_FORMAT */
return 1;