Bugzilla – Attachment 3463 Details for
Bug 3248
SFTP can not sort files by modification time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
proposed patch from Red Hat Bug
file_3248.txt (text/plain), 649 bytes, created by
Jakub Jelen
on 2021-01-04 22:51:22 AEDT
(
hide
)
Description:
proposed patch from Red Hat Bug
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2021-01-04 22:51:22 AEDT
Size:
649 bytes
patch
obsolete
>diff -up openssh-8.0p1/sftp.c.original openssh-8.0p1/sftp.c >--- openssh-8.0p1/sftp.c.original 2020-12-22 17:05:02.105698989 +0900 >+++ openssh-8.0p1/sftp.c 2020-12-22 17:05:42.922035780 +0900 >@@ -937,7 +937,11 @@ sglob_comp(const void *aa, const void *b > return (rmul * strcmp(ap, bp)); > else if (sort_flag & LS_TIME_SORT) { > #if defined(HAVE_STRUCT_STAT_ST_MTIM) >- return (rmul * timespeccmp(&as->st_mtim, &bs->st_mtim, <)); >+ if (timespeccmp(&as->st_mtim, &bs->st_mtim, <)){ >+ return rmul; >+ } else { >+ return -rmul; >+ } > #elif defined(HAVE_STRUCT_STAT_ST_MTIME) > return (rmul * NCMP(as->st_mtime, bs->st_mtime)); > #else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3248
:
3463
|
3464