Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 360688 Details for
Bug 487758
app-editors/mg-20130922 cannot save files (on some libcs).
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/mg-20130922-dirname.patch
mg-20130922-dirname.patch (text/plain), 466 bytes, created by
Ulrich Müller
on 2013-10-12 12:36:30 UTC
(
hide
)
Description:
files/mg-20130922-dirname.patch
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2013-10-12 12:36:30 UTC
Size:
466 bytes
patch
obsolete
>Fix dirname(3) call in writeout function. >https://bugs.gentoo.org/487758 > >--- mg-20130922-orig/file.c >+++ mg-20130922/file.c >@@ -669,11 +669,11 @@ > { > struct stat statbuf; > int s; >- char *dp; >- >- dp = dirname(fn); >+ char ts[NFILEN], *dp; > > if (stat(fn, &statbuf) == -1 && errno == ENOENT) { >+ (void)strlcpy(ts, fn, NFILEN); >+ dp = dirname(ts); > errno = 0; > if (access(dp, W_OK) && errno == EACCES) { > ewprintf("Directory %s%s write-protected", dp,
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 487758
:
360688