summaryrefslogtreecommitdiff
path: root/xmake/core/tool/tool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-21 21:33:30 +0800
committerruki <[email protected]>2017-05-21 21:33:30 +0800
commit83f448dc569b70410765dfe6241fabc351feb54f (patch)
tree7bd1762bf8235d535980ff8223df6c50048a7365 /xmake/core/tool/tool.lua
parentb173fc383b9b1e80f0cbd2229d7b6d46ff75f0b6 (diff)
fix write nuldev bug as root
Diffstat (limited to 'xmake/core/tool/tool.lua')
-rw-r--r--xmake/core/tool/tool.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua
index d73ccfb13..7b139b12b 100644
--- a/xmake/core/tool/tool.lua
+++ b/xmake/core/tool/tool.lua
@@ -209,7 +209,7 @@ function tool._check(shellname, check)
-- no checker? attempt to run it directly
if not module or not module.check then
- return 0 == os.exec(shellname, xmake._NULDEV, xmake._NULDEV)
+ return 0 == os.exec(shellname, os.nuldev(), os.nuldev())
end
-- check it