From 621273b5ef8cc9e83d9aca07bf012f727ba26f15 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Wed, 16 Dec 2015 14:50:11 +0000 Subject: web2c/luatexdir: LuaTeX beta-0.86.0 (Sync with the upstream). git-svn-id: svn://tug.org/texlive/trunk@39116 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c') diff --git a/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c b/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c index a0b967df193..2b1b06cf1db 100644 --- a/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c +++ b/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c @@ -374,10 +374,8 @@ static int make_dir (lua_State *L) { const char *path = luaL_checkstring (L, 1); int fail; #ifdef _WIN32 - int oldmask = umask (0); fail = _mkdir (path); #else - mode_t oldmask = umask( (mode_t)0 ); fail = mkdir (path, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IXOTH ); #endif @@ -386,7 +384,6 @@ static int make_dir (lua_State *L) { lua_pushfstring (L, "%s", strerror(errno)); return 2; } - umask (oldmask); lua_pushboolean (L, 1); return 1; } -- cgit v1.2.3