summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-22 14:52:58 +0800
committerTitanSnow <[email protected]>2017-05-22 18:37:43 +0800
commit2ca174000e9be4878321c08920e7abfc76b89d88 (patch)
treeee4988dd99a3787f52026a515f5882ecda33d804 /xmake/core/base/os.lua
parente97cf8fb89d7d46abb3a68c6c220a272fbc5dbf7 (diff)
add setuid feature to os.uid
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 02d96ad7e..0bae655b7 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -627,17 +627,11 @@ function os.nuldev()
end
-- get uid
-function os.uid()
-
- -- get it from cache first
- if os._UID then
- return os._UID
- end
-
+function os.uid(...)
-- get uid
os._UID = {}
if os._uid then
- os._UID = os._uid() or {}
+ os._UID = os._uid(...) or {}
end
-- ok?