FreeBSD Bugzilla – Attachment 135316 Details for
Bug 180164
[patch][regression] swapon segfault after r252310
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 709 bytes, created by
Fabian Keil
on 2013-07-01 13:10:00 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
Fabian Keil
Created:
2013-07-01 13:10:00 UTC
Size:
709 bytes
patch
obsolete
>From 4cf8c315df4f1c5761f8a90274ba551ec1f1fa36 Mon Sep 17 00:00:00 2001 >From: Fabian Keil <fk@fabiankeil.de> >Date: Mon, 1 Jul 2013 13:27:44 +0200 >Subject: [PATCH] Fix segmentation fault when swap_on_off_geli() is called > without mount options > >--- > sbin/swapon/swapon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c >index cf9b979..8bcfc55 100644 >--- a/sbin/swapon/swapon.c >+++ b/sbin/swapon/swapon.c >@@ -336,7 +336,7 @@ swap_on_off_geli(char *name, char *mntops, int doingall) > } > *p = '\0'; > >- ops = strdup(mntops); >+ ops = strdup(mntops != NULL ? mntops : ""); > > /* Default parameters for geli(8). */ > aalgo = aalgo_default; >-- >1.8.2.2
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 180164
: 135316