diff src/evalfunc.c @ 14497:a7b2dc5f1306 v8.1.0262

patch 8.1.0262: not enough testing for getftype() commit https://github.com/vim/vim/commit/1598f9937a18c056d7b713dc254325c8f8456c8f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 9 22:08:57 2018 +0200 patch 8.1.0262: not enough testing for getftype() Problem: Not enough testing for getftype(). Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/3300)
author Christian Brabandt <cb@256bit.org>
date Thu, 09 Aug 2018 22:15:04 +0200
parents 0a69e6e708f9
children 80f715651c4c
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -5111,7 +5111,7 @@ f_getftype(typval_T *argvars, typval_T *
 # endif
 # ifdef S_ISSOCK
 	else if (S_ISSOCK(st.st_mode))
-	    t = "fifo";
+	    t = "socket";
 # endif
 	else
 	    t = "other";