diff --git a/nufxlib/FileIO.c b/nufxlib/FileIO.c index c4c11db..9d20366 100644 --- a/nufxlib/FileIO.c +++ b/nufxlib/FileIO.c @@ -1097,15 +1097,16 @@ NuError Nu_CloseOutputFile(NuArchive* pArchive, const NuRecord* pRecord, err = Nu_SetFileDates(pArchive, pRecord, pathnameUNI); BailError(err); - err = Nu_SetFileAccess(pArchive, pRecord, pathnameUNI); - BailError(err); - #if defined(MAC_LIKE) /* could also do this earlier and pass the fd for fsetxattr */ + /* NOTE: must do this before Nu_SetFileAccess */ err = Nu_SetFinderInfo(pArchive, pRecord, pathnameUNI); BailError(err); #endif + err = Nu_SetFileAccess(pArchive, pRecord, pathnameUNI); + BailError(err); + bail: return kNuErrNone; }