[asterisk-commits] mnicholson: branch mnicholson/asttest r191415 - /team/mnicholson/asttest/astt...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 30 16:54:33 CDT 2009
Author: mnicholson
Date: Thu Apr 30 16:54:29 2009
New Revision: 191415
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=191415
Log:
use lstat instead of stat in astlib.c
Modified:
team/mnicholson/asttest/asttest/lua/astlib.c
Modified: team/mnicholson/asttest/asttest/lua/astlib.c
URL: http://svn.digium.com/svn-view/asterisk/team/mnicholson/asttest/asttest/lua/astlib.c?view=diff&rev=191415&r1=191414&r2=191415
==============================================================================
--- team/mnicholson/asttest/asttest/lua/astlib.c (original)
+++ team/mnicholson/asttest/asttest/lua/astlib.c Thu Apr 30 16:54:29 2009
@@ -70,7 +70,7 @@
continue;
}
- if (stat(src_path, &st)) {
+ if (lstat(src_path, &st)) {
lua_pushstring(L, "error with stat for '");
lua_pushstring(L, src_path);
lua_pushstring(L, "': ");
@@ -139,7 +139,7 @@
char dir_path[PATH_MAX];
struct stat st;
- if (stat(path, &st)) {
+ if (lstat(path, &st)) {
if (errno == ENOENT)
return 0;
More information about the asterisk-commits
mailing list