[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 160/264: Revert "file: on Windows, refuse paths that start with
From: |
gnunet |
Subject: |
[gnurl] 160/264: Revert "file: on Windows, refuse paths that start with \\" |
Date: |
Thu, 30 Apr 2020 16:07:43 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 5afa07fab57a8a06be0a6de577352d622f51b7ba
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Apr 10 23:52:06 2020 +0200
Revert "file: on Windows, refuse paths that start with \\"
This reverts commit 1b71bc532bde8621fd3260843f8197182a467ff2.
Reminded-by: Chris Roberts
Bug: https://curl.haxx.se/mail/archive-2020-04/0013.html
Closes #5215
---
lib/file.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/file.c b/lib/file.c
index 249237073..576a79463 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -136,7 +136,7 @@ static CURLcode file_connect(struct connectdata *conn, bool
*done)
struct Curl_easy *data = conn->data;
char *real_path;
struct FILEPROTO *file = data->req.protop;
- int fd = -1;
+ int fd;
#ifdef DOS_FILESYSTEM
size_t i;
char *actual_path;
@@ -181,9 +181,7 @@ static CURLcode file_connect(struct connectdata *conn, bool
*done)
return CURLE_URL_MALFORMAT;
}
- if(strncmp("\\\\", actual_path, 2))
- /* refuse to open path that starts with two backslashes */
- fd = open_readonly(actual_path, O_RDONLY|O_BINARY);
+ fd = open_readonly(actual_path, O_RDONLY|O_BINARY);
file->path = actual_path;
#else
if(memchr(real_path, 0, real_path_len)) {
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 149/264: github actions: run when pushed to master or */ci + PRs, (continued)
- [gnurl] 149/264: github actions: run when pushed to master or */ci + PRs, gnunet, 2020/04/30
- [gnurl] 185/264: tests: add four MQTT tests 1190 - 1193, gnunet, 2020/04/30
- [gnurl] 189/264: scripts/release-notes: fix duplicate output header, gnunet, 2020/04/30
- [gnurl] 121/264: curl: allow both --etag-compare and --etag-save with same file name, gnunet, 2020/04/30
- [gnurl] 146/264: tests: verify split initial HTTP requests with CURL_SMALLREQSEND, gnunet, 2020/04/30
- [gnurl] 212/264: test1245: make it work with dynamic FTP server port, gnunet, 2020/04/30
- [gnurl] 245/264: test1154: set a proper name, gnunet, 2020/04/30
- [gnurl] 147/264: schannel: support .P12 or .PFX client certificates, gnunet, 2020/04/30
- [gnurl] 163/264: tests: fix conflict between Cygwin/msys and Windows PIDs, gnunet, 2020/04/30
- [gnurl] 155/264: appveyor: ignore failing 'connect to non-listening proxy' tests, gnunet, 2020/04/30
- [gnurl] 160/264: Revert "file: on Windows, refuse paths that start with \\",
gnunet <=
- [gnurl] 192/264: test2043: use revoked.badssl.com instead of revoked.grc.com, gnunet, 2020/04/30
- [gnurl] 170/264: tests/server: add hidden window to gracefully handle WM_CLOSE, gnunet, 2020/04/30
- [gnurl] 22/264: TODO: TLS-PSK with OpenSSL, gnunet, 2020/04/30
- [gnurl] 40/264: multi: Improve parameter check for curl_multi_remove_handle, gnunet, 2020/04/30
- [gnurl] 56/264: test2100: fix static port instead of dynamic value being used, gnunet, 2020/04/30
- [gnurl] 68/264: cirrus: move the sanitizer build from freebsd 13 to freebsd 12, gnunet, 2020/04/30
- [gnurl] 72/264: nghttp2: 1.12.0 required, gnunet, 2020/04/30
- [gnurl] 89/264: TODO: Set custom client ip when using haproxy protocol, gnunet, 2020/04/30
- [gnurl] 91/264: KNOWN_BUGS: "FTPS needs session reuse", gnunet, 2020/04/30
- [gnurl] 178/264: version: increase buffer space for ssl version output, gnunet, 2020/04/30