From caab029609633220c417dc0aaa9025fd4b7a169c Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 19 Oct 2015 12:41:07 +0100 Subject: ln: enable in default configuration --- win32/mingw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'win32') diff --git a/win32/mingw.c b/win32/mingw.c index 211c378a3..86867a437 100644 --- a/win32/mingw.c +++ b/win32/mingw.c @@ -126,6 +126,7 @@ int err_win_to_posix(DWORD winerr) case ERROR_SHARING_VIOLATION: error = EACCES; break; case ERROR_STACK_OVERFLOW: error = ENOMEM; break; case ERROR_SWAPERROR: error = ENOENT; break; + case ERROR_TOO_MANY_LINKS: error = EMLINK; break; case ERROR_TOO_MANY_MODULES: error = EMFILE; break; case ERROR_TOO_MANY_OPEN_FILES: error = EMFILE; break; case ERROR_UNRECOGNIZED_MEDIA: error = ENXIO; break; @@ -367,6 +368,7 @@ int mingw_fstat(int fd, struct mingw_stat *buf) buf->st_ino = 0; buf->st_uid = DEFAULT_UID; buf->st_gid = DEFAULT_GID; + /* could use fdata.nNumberOfLinks but it's inconsistent with stat */ buf->st_nlink = 1; buf->st_mode = file_attr_to_st_mode(fdata.dwFileAttributes); buf->st_size = fdata.nFileSizeLow | -- cgit v1.2.3-55-g6feb