Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 171499 Details for
Bug 246456
dev-dotnet/pe-format-0 should tell difference between wine and mono
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
check if file is mono or wine
check-wine-mono.c (text/plain), 478 bytes, created by
gfl3162+gbugzilla
on 2008-11-12 04:57:55 UTC
(
hide
)
Description:
check if file is mono or wine
Filename:
MIME Type:
Creator:
gfl3162+gbugzilla
Created:
2008-11-12 04:57:55 UTC
Size:
478 bytes
patch
obsolete
>#include <sys/types.h> >#include <sys/stat.h> >#include <fcntl.h> >#include <unistd.h> >#include <stdio.h> > >void rundo(char *r, char **v, char **e) >{ > v[0] = r; > execve(r, v, e); >} > >int main(int a, char **v, char **e) >{ > char che; > int ptr; > int ch = open(v[1], O_RDONLY); > lseek(ch, 0x3c, SEEK_SET); > read(ch, &ptr, 4); > ptr += 232; > lseek(ch, ptr, SEEK_SET); > read(ch, &che, 1); > if (che == 0x64) > rundo("/usr/bin/mono", v, e); > else > rundo("/usr/bin/wine", v, e); > 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 246456
:
171499
|
171500
|
210794
|
246387