diff liboctave/file-stat.cc @ 5871:b9fd54407c8d

[project @ 2006-06-30 16:48:39 by jwe]
author jwe
date Fri, 30 Jun 2006 16:48:40 +0000
parents ace8d8d26933
children 56a7de3f6451
line wrap: on
line diff
--- a/liboctave/file-stat.cc
+++ b/liboctave/file-stat.cc
@@ -35,6 +35,7 @@
 #include <unistd.h>
 #endif
 
+#include "file-ops.h"
 #include "file-stat.h"
 #include "statdefs.h"
 
@@ -196,8 +197,10 @@
     {
       initialized = false;
       fail = false;
+      
+      std::string full_file_name = file_ops::tilde_expand (file_name);
 
-      const char *cname = file_name.c_str ();
+      const char *cname = full_file_name.c_str ();
 
       struct stat buf;