[haiku-bugs] Re: [Haiku] #11582: BRoster::Launch() mistakenly returns B_OK

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 24 Aug 2019 04:22:53 -0000

#11582: BRoster::Launch() mistakenly returns B_OK
------------------------------------+----------------------------
   Reporter:  ttcoder               |      Owner:  axeld
       Type:  bug                   |     Status:  new
   Priority:  normal                |  Milestone:  R1
  Component:  Kits/Application Kit  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by waddlesplash):

 I just conjured up this simple test app:

 {{{
 #include <Roster.h>
 #include <stdlib.h>
 #include <stdio.h>

 int main(int, char*[])
 {
         entry_ref ref;
         printf("%s\n", strerror(be_roster->Launch(&ref)));

         get_ref_for_path("/boot/home/Desktop/no_exists", &ref);
         printf("%s\n", strerror(be_roster->Launch(&ref)));

         BEntry entry("/boot/home/Desktop/no_exists");
         entry.GetRef(&ref);
         printf("%s\n", strerror(be_roster->Launch(&ref)));
 }
 }}}

 And running it gives:

 {{{
 No such file or directory
 No such file or directory
 No such file or directory
 }}}

 So, it seems this works now? ttcoder, can you confirm?

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/11582#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: