Fix a bug where ls -le
would print the time twice.
This commit is contained in:
parent
792cae5f2a
commit
65b6d8bdb6
@ -717,12 +717,11 @@ static int list_single(struct dnode *dn)
|
|||||||
break;
|
break;
|
||||||
#ifdef CONFIG_FEATURE_LS_TIMESTAMPS
|
#ifdef CONFIG_FEATURE_LS_TIMESTAMPS
|
||||||
case LIST_FULLTIME:
|
case LIST_FULLTIME:
|
||||||
case LIST_DATE_TIME:
|
|
||||||
if (all_fmt & LIST_FULLTIME) {
|
|
||||||
printf("%24.24s ", filetime);
|
printf("%24.24s ", filetime);
|
||||||
column += 25;
|
column += 25;
|
||||||
break;
|
break;
|
||||||
}
|
case LIST_DATE_TIME:
|
||||||
|
if ((all_fmt & LIST_FULLTIME) == 0) {
|
||||||
age = time(NULL) - ttime;
|
age = time(NULL) - ttime;
|
||||||
printf("%6.6s ", filetime + 4);
|
printf("%6.6s ", filetime + 4);
|
||||||
if (age < 3600L * 24 * 365 / 2 && age > -15 * 60) {
|
if (age < 3600L * 24 * 365 / 2 && age > -15 * 60) {
|
||||||
@ -732,6 +731,7 @@ static int list_single(struct dnode *dn)
|
|||||||
printf(" %4.4s ", filetime + 20);
|
printf(" %4.4s ", filetime + 20);
|
||||||
}
|
}
|
||||||
column += 13;
|
column += 13;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SELINUX
|
#ifdef CONFIG_SELINUX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user