瀏覽代碼

[unix] don't spoil null_pos in get_full_path (affects #9504)

Aleksandr Kuzmenko 5 年之前
父節點
當前提交
5908d2cd76
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/core/path.ml

+ 1 - 0
src/core/path.ml

@@ -133,6 +133,7 @@ let get_full_path =
 			let absolute_path =
 			let absolute_path =
 				if length > 0 && String.unsafe_get f 0 = '/' then f
 				if length > 0 && String.unsafe_get f 0 = '/' then f
 				else if length = 0 then Unix.getcwd()
 				else if length = 0 then Unix.getcwd()
+				else if f = "?" then f
 				else (Unix.getcwd()) ^ "/" ^ f
 				else (Unix.getcwd()) ^ "/" ^ f
 			in
 			in
 			let has_trailing_slash =
 			let has_trailing_slash =