Fix Compile
All checks were successful
Source release / source-package (push) Successful in 46s

This commit is contained in:
Mario Fetka
2026-05-30 19:33:57 +02:00
parent 31a9234c8b
commit 34504f1381

View File

@@ -1213,10 +1213,11 @@ static int afp_fill_file_info_response(const char *unixname,
mars_nwe_get_file_info((char *)unixname, &create_date, &create_time,
NULL, &fileinfo_flags);
if (fileinfo_flags & MARS_NWE_FILEINFO_HAS_CREATE_DATE)
if (fileinfo_flags & MARS_NWE_FILEINFO_HAS_CREATE_DATE) {
U16_TO_BE16(create_date, response + 20);
else
} else {
un_date_2_nw(stbuff.st_ctime, response + 20, 1);
}
/* The AFP information record used by this NCP extension has no visible
* create-time slot; still persist SetInfo Create Time through nwarchive
* so classic NetWare file-info calls can return it. */