RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: j...@rpm5.org Module: lua Date: 06-May-2016 00:29:30 Branch: rpm-5_4 Handle: 2016050522293000 Modified files: (Branch: rpm-5_4) lua/local lposix.c Log: - lua: readd a symlink() syscall wrapper. Summary: Revision Changes Path 1.14.4.11 +8 -0 lua/local/lposix.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: lua/local/lposix.c ============================================================================ $ cvs diff -u -r1.14.4.10 -r1.14.4.11 lposix.c --- lua/local/lposix.c 19 Apr 2016 12:55:44 -0000 1.14.4.10 +++ lua/local/lposix.c 5 May 2016 22:29:30 -0000 1.14.4.11 @@ -769,6 +769,13 @@ return pushresult(L, (lua_toboolean(L,3) ? symlink : link)(oldpath, newpath), NULL); } +static int Psymlink(lua_State *L) +{ + const char *oldpath = luaL_checkstring(L, 1); + const char *newpath = luaL_checkstring(L, 2); + return pushresult(L, + symlink(oldpath, newpath), NULL); +} /*** Read value of a symbolic link. @@ -3755,6 +3762,7 @@ MENTRY( Pkill ), MENTRY( Pkillpg ), MENTRY( Plink ), + MENTRY( Psymlink ), MENTRY( Plocaltime ), MENTRY( Plseek ), MENTRY( Pmkdir ), @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org