From cb0297bb1a6c3f5ce7fcebcda08a29554a993d12 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 24 Nov 2006 20:59:01 +0000 Subject: [PATCH] (file_name_absolute_p) [WINDOWSNT]: Support absolute file names with forward slashes. --- lib-src/ChangeLog | 5 +++++ lib-src/emacsclient.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index b756e6a5405..a81852057b2 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2006-11-24 Michael Mauger + + * emacsclient.c (file_name_absolute_p) [WINDOWSNT]: Support + absolute file names with forward slashes. + 2006-11-23 Juanma Barranquero * emacsclient.c (print_help_and_exit): Tweak message contents and diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 3040206ef34..5e8b563984d 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -452,7 +452,7 @@ file_name_absolute_p (filename) #ifdef WINDOWSNT /* X:\xxx is always absolute; X:xxx is an error and will fail. */ if (islower (tolower (filename[0])) - && filename[1] == ':' && filename[2] == '\\') + && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/')) return TRUE; /* Both \xxx and \\xxx\yyy are absolute. */ -- 2.39.2