Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/src/bin/e_open.c
- +++ b/src/bin/e_open.c
- @@ -475,6 +475,19 @@ static const Ecore_Getopt options = {
- }
- };
- +static Eina_Bool
- +_is_protocole(const char *path)
- +{
- + Eina_Bool nonlocal = EINA_FALSE;
- + if (strstr(path, ":"))
- + {
- + const char *p = path;
- + while (!nonlocal && (*p != '/' || p++))
- + nonlocal = (*p == ':');
- + }
- + return nonlocal;
- +}
- +
- E_API int
- main(int argc, char *argv[])
- {
- @@ -535,7 +548,7 @@ main(int argc, char *argv[])
- }
- }
- }
- - else if (strstr(argv[args], ":"))
- + else if (_is_protocole(argv[args]))
- cmds = protocol_open(argv[args]);
- else
- cmds = local_open(argv[args]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement