Opened 11 years ago

Last modified 11 years ago

#10111 closed bug

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

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

Description

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 (1)

by phcoder, 11 years ago

Attachment: haiku3.png added
Note: See TracTickets for help on using tickets.