* fhandler.cc (fhandler_base::open): Call path_conv::get_nt_native_path
for evaluating NT path. * path.cc (normalize_posix_path): Remove trailing dots and spaces. (path_conv::get_nt_native_path): New function. * path.h (class path_conv): Declare get_nt_native_path method.
This commit is contained in:
@@ -12,6 +12,7 @@ details. */
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <fcntl.h>
|
||||
#include <ntdef.h>
|
||||
|
||||
enum executable_states
|
||||
{
|
||||
@@ -191,6 +192,7 @@ class path_conv
|
||||
|
||||
~path_conv ();
|
||||
inline char *get_win32 () { return path; }
|
||||
PUNICODE_STRING get_nt_native_path (UNICODE_STRING &upath, WCHAR *wpath);
|
||||
operator char *() {return path;}
|
||||
operator const char *() {return path;}
|
||||
operator DWORD &() {return fileattr;}
|
||||
|
Reference in New Issue
Block a user