aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-07-14 09:06:36 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-07-14 09:06:36 -0400
commitf693b4043d29ec21d990661450cdbd353da0e036 (patch)
tree4e06241295ab8e32358a06eff245431daae52d24 /src/nvim/ex_cmds.c
parentbf6b0e3c0aa34beca13eee898decdf0fcde8b502 (diff)
parent0ceebc2c913cc497735e001772cb6b395c36cecc (diff)
downloadrneovim-f693b4043d29ec21d990661450cdbd353da0e036.tar.gz
rneovim-f693b4043d29ec21d990661450cdbd353da0e036.tar.bz2
rneovim-f693b4043d29ec21d990661450cdbd353da0e036.zip
Merge #846 'impl mch_open with libuv'
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index d8cd7961fb..78325fd4a4 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -1575,19 +1575,19 @@ void write_viminfo(char_u *file, int forceit)
if (tempname != NULL) {
int fd;
- /* Use mch_open() to be able to use O_NOFOLLOW and set file
+ /* Use os_open() to be able to use O_NOFOLLOW and set file
* protection:
* Unix: same as original file, but strip s-bit. Reset umask to
* avoid it getting in the way.
* Others: r&w for user only. */
# ifdef UNIX
umask_save = umask(0);
- fd = mch_open((char *)tempname,
+ fd = os_open((char *)tempname,
O_CREAT|O_EXCL|O_WRONLY|O_NOFOLLOW,
(int)((old_info.stat.st_mode & 0777) | 0600));
(void)umask(umask_save);
# else
- fd = mch_open((char *)tempname,
+ fd = os_open((char *)tempname,
O_CREAT|O_EXCL|O_WRONLY|O_NOFOLLOW, 0600);
# endif
if (fd < 0)