ruby-changes:57165
From: git <ko1@a...>
Date: Mon, 19 Aug 2019 14:34:39 +0900 (JST)
Subject: [ruby-changes:57165] git: 1f3f50fb5e (master): * expand tabs. [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=1f3f50fb5e From 1f3f50fb5eb08ede6cfaf450e0d7db797ec46c95 Mon Sep 17 00:00:00 2001 From: git <svn-admin@r...> Date: Mon, 19 Aug 2019 14:34:29 +0900 Subject: * expand tabs. [ci skip] diff --git a/win32/win32.c b/win32/win32.c index 784f909..fe5058a 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -5207,12 +5207,12 @@ w32_symlink(UINT cp, const char *src, const char *link) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L5207 } if (!*link) { - errno = ENOENT; - return -1; + errno = ENOENT; + return -1; } if (!*src) { - errno = EINVAL; - return -1; + errno = EINVAL; + return -1; } len1 = MultiByteToWideChar(cp, 0, src, -1, NULL, 0); len2 = MultiByteToWideChar(cp, 0, link, -1, NULL, 0); @@ -5227,12 +5227,12 @@ w32_symlink(UINT cp, const char *src, const char *link) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L5227 flag = SYMBOLIC_LINK_FLAG_DIRECTORY; ret = create_symbolic_link(wlink, wsrc, flag |= create_flag); if (!ret && - (e = GetLastError()) == ERROR_INVALID_PARAMETER && - (flag & SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE)) { - create_flag = 0; - flag &= ~SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE; - ret = create_symbolic_link(wlink, wsrc, flag); - if (!ret) e = GetLastError(); + (e = GetLastError()) == ERROR_INVALID_PARAMETER && + (flag & SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE)) { + create_flag = 0; + flag &= ~SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE; + ret = create_symbolic_link(wlink, wsrc, flag); + if (!ret) e = GetLastError(); } ALLOCV_END(buf); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/