Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 653834 Details for
Bug 587230
app-emulation/qemu - sys-apps/install-xattr segfaults in qemu-arm-user
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test.c
test.c (text/x-csrc), 501 bytes, created by
Andrew Aladjev
on 2020-08-08 19:39:38 UTC
(
hide
)
Description:
test.c
Filename:
MIME Type:
Creator:
Andrew Aladjev
Created:
2020-08-08 19:39:38 UTC
Size:
501 bytes
patch
obsolete
>#include <fcntl.h> >#include <stdlib.h> >#include <stdio.h> >#include <unistd.h> > >#ifndef O_PATH >#define O_PATH __O_PATH >#endif > >int main () { > int fd = open("/proc/self/exe", O_PATH); > if (fd < 0) { > return 1; > } > > char path[512]; > sprintf(path, "/proc/self/fd/%d", fd); > > char buf[512]; > readlinkat(AT_FDCWD, path, buf, 512); > close(fd); > > char *resolved_path = realpath("/proc/self/exe", NULL); > fprintf(stderr, "resolved path %p\n", resolved_path); > free(resolved_path); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 587230
: 653834 |
654506
|
654982
|
659016