mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
parent
371be36f88
commit
1720606226
32 changed files with 409 additions and 317 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: loslib.c,v 1.39 2012/05/23 15:37:09 roberto Exp $
|
||||
** $Id: loslib.c,v 1.40 2012/10/19 15:54:02 roberto Exp $
|
||||
** Standard Operating System library
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -98,7 +98,7 @@ static int os_remove (lua_State *L) {
|
|||
static int os_rename (lua_State *L) {
|
||||
const char *fromname = luaL_checkstring(L, 1);
|
||||
const char *toname = luaL_checkstring(L, 2);
|
||||
return luaL_fileresult(L, rename(fromname, toname) == 0, fromname);
|
||||
return luaL_fileresult(L, rename(fromname, toname) == 0, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue