Opened 11 years ago

Last modified 11 years ago

#10111 closed bug

panic when attempting to open symlink with O_CREAT | O_NOFOLLOW — at Version 1

Reported by: phcoder Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by anevilyak)

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;
}

Change History (2)

by phcoder, 11 years ago

Attachment: haiku3.png added

comment:1 by anevilyak, 11 years ago

Component: - GeneralSystem/Kernel
Description: modified (diff)
Owner: changed from nobody to axeld
Note: See TracTickets for help on using tickets.