[haiku-bugs] [Haiku] #10111: panic when attempting to open symlink with O_CREAT | O_NOFOLLOW

  • From: "phcoder" <trac@xxxxxxxxxxxx>
  • Date: Fri, 18 Oct 2013 18:03:32 -0000

#10111: panic when attempting to open symlink with O_CREAT | O_NOFOLLOW
-----------------------+------------------------------
 Reporter:  phcoder    |        Owner:  nobody
     Type:  bug        |       Status:  new
 Priority:  normal     |    Milestone:  R1
Component:  - General  |      Version:  R1/Development
 Keywords:             |   Blocked By:
 Blocking:             |  Has a Patch:  0
 Platform:  All        |
-----------------------+------------------------------
 Testcase:
 #include <sys/types.h>
 #include <sys/stat.h>
 # include <unistd.h>
 #include <fcntl.h>

 int
 main ()
 {
   int fd;

   static char const sym[] = "conftest.sym";
   symlink ("/dev/null", sym);
   fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
   close (fd);

   unlink (sym);

   return 0;
 }

--
Ticket URL: <http://dev.haiku-os.org/ticket/10111>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: