Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 312095 Details for
Bug 416361
app-arch/dump-0.4.44-r1 restore crashes restoring UNIX-domain socket with very long name
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix the crash
dump-socket-crash.patch (text/plain), 817 bytes, created by
Christopher Head
on 2012-05-17 09:24:06 UTC
(
hide
)
Description:
Patch to fix the crash
Filename:
MIME Type:
Creator:
Christopher Head
Created:
2012-05-17 09:24:06 UTC
Size:
817 bytes
patch
obsolete
>diff --git a/restore/tape.c b/restore/tape.c >index 7debfd1..cdafcd0 100644 >--- a/restore/tape.c >+++ b/restore/tape.c >@@ -856,23 +856,10 @@ extractfile(struct entry *ep, int doremove) > if (Nflag) > return (GOOD); > if (! (spcl.c_flags & DR_METAONLY)) { >- int sk; >- struct sockaddr_un addr; >- >- if (uflag) >- (void)unlink(name); >- >- if ((sk = socket(AF_UNIX, SOCK_DGRAM, 0)) < 0) { >- warn("%s: cannot create socket", name); >- return (FAIL); >- } >- addr.sun_family = AF_UNIX; >- strcpy(addr.sun_path, name); >- if (bind(sk, (const struct sockaddr *)&addr, sizeof(struct sockaddr_un)) < 0) { >+ if (mknod(name, S_IFSOCK | 0600, 0) < 0) { > warn("%s: cannot create socket", name); > return (FAIL); > } >- close(sk); > } > if (chown(name, luid, lgid) < 0) > warn("%s: chown", name);
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 416361
: 312095