Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 278391 Details for
Bug 371141
sys-apps/openrc: $IFS misuse in unmount-related initscripts (mount-ro and localmount)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix saving and restoring of $IFS
0001-Fix-saving-and-restoring-of-IFS.patch (text/plain), 1.53 KB, created by
Kirill Elagin
on 2011-06-27 20:20:51 UTC
(
hide
)
Description:
Fix saving and restoring of $IFS
Filename:
MIME Type:
Creator:
Kirill Elagin
Created:
2011-06-27 20:20:51 UTC
Size:
1.53 KB
patch
obsolete
>From e5f0a0666f4c83f62a06c342fc561a52636d6249 Mon Sep 17 00:00:00 2001 >From: Kirill Elagin <kirelagin@gmail.com> >Date: Tue, 28 Jun 2011 00:18:05 +0400 >Subject: [PATCH] Fix saving and restoring of $IFS > >--- > init.d/localmount.in | 8 +------- > init.d/mount-ro.in | 8 +------- > 2 files changed, 2 insertions(+), 14 deletions(-) > >diff --git a/init.d/localmount.in b/init.d/localmount.in >index 3b7ba44..7b92166 100644 >--- a/init.d/localmount.in >+++ b/init.d/localmount.in >@@ -37,16 +37,10 @@ stop() > local x= no_umounts_r="/|/dev|/dev/.*|${RC_SVCDIR}" > no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib|/libexec" > # RC_NO_UMOUNTS is an env var that can be set by plugins >- local OIFS=$IFS SIFS=${IFS-y} >- IFS=$IFS: >+ local IFS=$IFS: > for x in $no_umounts $RC_NO_UMOUNTS; do > no_umounts_r="$no_umounts_r|$x" > done >- if [ "$SIFS" = y ]; then >- IFS=$OIFS >- else >- unset IFS >- fi > > if [ "$RC_UNAME" = Linux ]; then > no_umounts_r="$no_umounts_r|/proc|/proc/.*|/run|/sys|/sys/.*" >diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in >index 69032d7..e4ce6d5 100644 >--- a/init.d/mount-ro.in >+++ b/init.d/mount-ro.in >@@ -22,16 +22,10 @@ start() > local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|${RC_SVCDIR}" x= fs= > m="$m|/bin|/sbin|/lib|/libexec" > # RC_NO_UMOUNTS is an env var that can be set by plugins >- local OIFS=$IFS SIFS=${IFS-y} IFS=$IFS >- IFS=$IFS: >+ local IFS=$IFS: > for x in $no_umounts $RC_NO_UMOUNTS; do > m="$m|$x" > done >- if [ "$SIFS" = y ]; then >- IFS=$OIFS >- else >- unset IFS >- fi > m="^($m)$" > fs= > for x in $net_fs_list; do >-- >1.7.3.4 >
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 371141
:
276649
|
278383
|
278391
|
279343