Opened 11 years ago

Closed 11 years ago

#10111 closed bug (duplicate)

panic when attempting to open symlink with O_CREAT | O_NOFOLLOW

Reported by: phcoder Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: #9140 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;
}

Attachments (1)

haiku3.png (43.0 KB ) - added by phcoder 11 years ago.

Download all attachments as: .zip

Change History (4)

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

comment:2 by siarzhuk, 11 years ago

#9140 was fixed in hrev46039.

comment:3 by anevilyak, 11 years ago

Blocked By: 9140 added
Resolution: duplicate
Status: newclosed

Duplicate indeed.

Note: See TracTickets for help on using tickets.