hrev52700 adds 1 changeset to branch 'master'
old head: b02e6250e91b7467d6c4a8cc47e682f6d279afca
new head: d52d36aa5d72488a2725d0a52cf0f602251c0fe9
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=d52d36aa5d72+%5Eb02e6250e91b
----------------------------------------------------------------------------
d52d36aa5d72: open: don't print "invalid argument" when opening an URL.
Reset the error code.
Change-Id: I5b58c3082f5758d4cbca8c9706048e3414f939c9
Reviewed-on: https://review.haiku-os.org/807
Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>
[ Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev52700
Commit: d52d36aa5d72488a2725d0a52cf0f602251c0fe9
URL: https://git.haiku-os.org/haiku/commit/?id=d52d36aa5d72
Author: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Date: Tue Jan 1 16:28:14 2019 UTC
Committer: waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Tue Jan 1 17:48:29 2019 UTC
----------------------------------------------------------------------------
1 file changed, 3 insertions(+), 1 deletion(-)
src/bin/open.cpp | 4 +++-
----------------------------------------------------------------------------
diff --git a/src/bin/open.cpp b/src/bin/open.cpp
index 916e80692b..02aaa6565e 100644
--- a/src/bin/open.cpp
+++ b/src/bin/open.cpp
@@ -97,8 +97,10 @@ main(int argc, char** argv)
} else if (strchr(*argv, ':')) {
// try to open it as an URI
BUrl url(*argv);
- if (url.OpenWithPreferredApplication() == B_OK)
+ if (url.OpenWithPreferredApplication() == B_OK) {
+ result = B_OK;
continue;
+ }
// maybe it's "file:line" or "file:line:col"
int line = 0, col = 0, i;