mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
fileinfo: rename os_get_file_info{,_link,_fd}
This commit is contained in:
@@ -122,8 +122,7 @@ memfile_T *mf_open(char_u *fname, int flags)
|
||||
* mf_blocknr_max must be rounded up.
|
||||
*/
|
||||
FileInfo file_info;
|
||||
if (mfp->mf_fd >= 0
|
||||
&& os_get_file_info_fd(mfp->mf_fd, &file_info)) {
|
||||
if (mfp->mf_fd >= 0 && os_fileinfo_fd(mfp->mf_fd, &file_info)) {
|
||||
uint64_t blocksize = os_fileinfo_blocksize(&file_info);
|
||||
if (blocksize >= MIN_SWAP_PAGE_SIZE && blocksize <= MAX_SWAP_PAGE_SIZE) {
|
||||
mfp->mf_page_size = blocksize;
|
||||
@@ -1018,7 +1017,7 @@ mf_do_open (
|
||||
*/
|
||||
FileInfo file_info;
|
||||
if ((flags & O_CREAT)
|
||||
&& os_get_file_info_link((char *)mfp->mf_fname, &file_info)) {
|
||||
&& os_fileinfo_link((char *)mfp->mf_fname, &file_info)) {
|
||||
mfp->mf_fd = -1;
|
||||
EMSG(_("E300: Swap file already exists (symlink attack?)"));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user