Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 436752 Details for
Bug 478226
sys-apps/openrc segfaults when no fstab file is present
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Git-formatted version of previous patch
0001-Ensure-etc-fstab-exists-before-calling-setmntent.patch (text/plain), 828 bytes, created by
A. Wilcox (awilfox)
on 2016-06-07 09:40:10 UTC
(
hide
)
Description:
Git-formatted version of previous patch
Filename:
MIME Type:
Creator:
A. Wilcox (awilfox)
Created:
2016-06-07 09:40:10 UTC
Size:
828 bytes
patch
obsolete
>From 0c9f0357bf160e920e103c027c75058e42bcf22a Mon Sep 17 00:00:00 2001 >From: "A. Wilcox" <awilfox@adelielinux.org> >Date: Tue, 7 Jun 2016 04:31:48 -0500 >Subject: [PATCH] Ensure /etc/fstab exists before calling setmntent > >X-Gentoo-Bug: 478226 >X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=478226 >Signed-Off-By: A. Wilcox <awilfox@adelielinux.org> >--- > src/rc/mountinfo.c | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c >index 10e3238..d6d3ae2 100644 >--- a/src/rc/mountinfo.c >+++ b/src/rc/mountinfo.c >@@ -297,6 +297,9 @@ getmntfile(const char *file) > struct mntent *ent = NULL; > FILE *fp; > >+ if ((access("/etc/fstab", F_OK)) == -1) >+ return NULL; >+ > fp = setmntent("/etc/fstab", "r"); > while ((ent = getmntent(fp))) > if (strcmp(file, ent->mnt_dir) == 0) >-- >2.8.3 >
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 478226
:
436748
| 436752