Software /
code /
prosody
Comparison
util/datamanager.lua @ 7927:7132abcf669e
util.datamanager: Import value of ENOENT from util.pposix (if available)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 01 Mar 2017 17:04:48 +0100 |
parent | 7925:209503ee3aaa |
child | 7928:9d014aca766f |
comparison
equal
deleted
inserted
replaced
7926:b009c27818c6 | 7927:7132abcf669e |
---|---|
42 local ENOENT = 2; | 42 local ENOENT = 2; |
43 pcall(function() | 43 pcall(function() |
44 local pposix = require "util.pposix"; | 44 local pposix = require "util.pposix"; |
45 raw_mkdir = pposix.mkdir or raw_mkdir; -- Doesn't trample on umask | 45 raw_mkdir = pposix.mkdir or raw_mkdir; -- Doesn't trample on umask |
46 fallocate = pposix.fallocate or fallocate; | 46 fallocate = pposix.fallocate or fallocate; |
47 ENOENT = pposix.ENOENT or ENOENT; | |
47 end); | 48 end); |
48 | 49 |
49 local _ENV = nil; | 50 local _ENV = nil; |
50 | 51 |
51 ---- utils ----- | 52 ---- utils ----- |