diff options
| author | TitanSnow <[email protected]> | 2017-05-22 14:52:58 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-22 18:37:43 +0800 |
| commit | 2ca174000e9be4878321c08920e7abfc76b89d88 (patch) | |
| tree | ee4988dd99a3787f52026a515f5882ecda33d804 /xmake/core/base/os.lua | |
| parent | e97cf8fb89d7d46abb3a68c6c220a272fbc5dbf7 (diff) | |
add setuid feature to os.uid
Diffstat (limited to 'xmake/core/base/os.lua')
| -rw-r--r-- | xmake/core/base/os.lua | 10 |
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? |
