From 8af55bbdcc71b86d0f5342375839da1a926af734 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 13 Oct 2017 15:36:36 -0600 Subject: [PATCH] netutils/ftpc: Fix some crazy comparisons to determine is a file is an absolute path. Noted by Anthony Merlino. --- netutils/ftpc/ftpc_transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netutils/ftpc/ftpc_transfer.c b/netutils/ftpc/ftpc_transfer.c index 582c44ae6..24db7e16e 100644 --- a/netutils/ftpc/ftpc_transfer.c +++ b/netutils/ftpc/ftpc_transfer.c @@ -216,7 +216,7 @@ static FAR char *ftpc_abspath(FAR struct ftpc_session_s *session, /* Check for an absolute path */ - else if (relpath[0] == '/' && relpath[1] == ':' && relpath[2] == '\\') + else if (relpath[0] == '/') { ptr = strdup(relpath); }