summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-22 08:11:21 +0800
committerTitanSnow <[email protected]>2017-05-22 08:11:21 +0800
commitba4864ad076d07320b9d0f0b4b11b3b22644031e (patch)
treed1673670e26ca09571a1d79923c1b681e0cb00d2
parent8e5973554fcb4ec070bb6e6002bc40bd4f950a6e (diff)
make os.nuldev() return os._NULDEV directly
prev commit fixed process redirect so that this can simply redirect to nuldev
-rw-r--r--xmake/core/base/os.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 8bb67e1db..5e325aaf4 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -627,11 +627,7 @@ end
-- get the system null device
function os.nuldev()
- if os.isroot() then
- return os.tmpfile()
- else
- return xmake._NULDEV
- end
+ return xmake._NULDEV
end
-- check run command as root