0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

patch 8.1.0262: not enough testing for getftype()

Problem:    Not enough testing for getftype().
Solution:   Add a test. (Dominique Pelle, closes #3300)
This commit is contained in:
Bram Moolenaar
2018-08-09 22:08:57 +02:00
parent 38efd1d17a
commit 1598f9937a
3 changed files with 38 additions and 1 deletions

View File

@@ -5111,7 +5111,7 @@ f_getftype(typval_T *argvars, typval_T *rettv)
# endif
# ifdef S_ISSOCK
else if (S_ISSOCK(st.st_mode))
t = "fifo";
t = "socket";
# endif
else
t = "other";