Mailinglist Archive: opensuse-bugs (8113 mails)

< Previous Next >
[Bug 244554] Initial mkinitrd creation fails
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 12 Feb 2007 17:38:24 -0700 (MST)
  • Message-id: <20070213003824.9395E25C887@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=244554





------- Comment #11 from suse-beta@xxxxxxxxx 2007-02-12 17:38 MST -------
Ulrich, your workaround uses an insecure tempfile :-(

++++++ mkinitrd ++++++
--- mkinitrd/mkinitrd 2006-11-24 22:13:47.000000000 +0100
+++ /mounts/work_src_done/STABLE/mkinitrd/mkinitrd 2007-02-12
15:33:18.000000000 +0100
[...]
+ sed -e '/^[ ]*#/d' $root_dir/etc/fstab >/tmp/fstab$$
[...]
- done < <( sed -e '/^[ ]*#/d' < $root_dir/etc/fstab)
+ done < /tmp/fstab$$
+ rm /tmp/fstab$$

/tmp/fstab* can be target of a classical symlink attach now ;-)

Please use mktemp to generate a secure tempfile name (or use a secure [aka
non-worldwriteable] directory)


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >
References