Remove O_EXTRA which was only for EMX and cygwin.

This commit is contained in:
Chris Watkins
2014-04-22 23:30:46 -07:00
committed by Thiago de Arruda
parent bf9aeda01c
commit b951cf5bfc
6 changed files with 25 additions and 37 deletions

View File

@@ -1656,12 +1656,12 @@ void write_viminfo(char_u *file, int forceit)
# ifdef UNIX
umask_save = umask(0);
fd = mch_open((char *)tempname,
O_CREAT|O_EXTRA|O_EXCL|O_WRONLY|O_NOFOLLOW,
O_CREAT|O_EXCL|O_WRONLY|O_NOFOLLOW,
(int)((st_old.st_mode & 0777) | 0600));
(void)umask(umask_save);
# else
fd = mch_open((char *)tempname,
O_CREAT|O_EXTRA|O_EXCL|O_WRONLY|O_NOFOLLOW, 0600);
O_CREAT|O_EXCL|O_WRONLY|O_NOFOLLOW, 0600);
# endif
if (fd < 0)
fp_out = NULL;