Marked security holes as such
Этот коммит содержится в:
родитель
853c179690
Коммит
44219900e8
@ -107,6 +107,7 @@ sub mcdebfs_run
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
# FIXME: TMP RACE
|
||||||
$tmpcmd="/tmp/mcdebfs.run.$$";
|
$tmpcmd="/tmp/mcdebfs.run.$$";
|
||||||
&mcdebfs_copyout($archive, $filename, $tmpcmd);
|
&mcdebfs_copyout($archive, $filename, $tmpcmd);
|
||||||
system("chmod u+x $tmpcmd");
|
system("chmod u+x $tmpcmd");
|
||||||
|
@ -134,6 +134,7 @@ mcrpmfs_copyout ()
|
|||||||
INFO/SIZE) rpm -qp --qf "%{SIZE} bytes\n" $1 > $3; exit 0;;
|
INFO/SIZE) rpm -qp --qf "%{SIZE} bytes\n" $1 > $3; exit 0;;
|
||||||
*)
|
*)
|
||||||
TMPDIR=/tmp/mctmpdir.$$
|
TMPDIR=/tmp/mctmpdir.$$
|
||||||
|
# FIXME: TMP RACE - if mkdir fails, we go there, anyway
|
||||||
mkdir $TMPDIR
|
mkdir $TMPDIR
|
||||||
cd $TMPDIR
|
cd $TMPDIR
|
||||||
rpm2cpio $1 | cpio -iumd --quiet $2 >/dev/null
|
rpm2cpio $1 | cpio -iumd --quiet $2 >/dev/null
|
||||||
|
@ -48,6 +48,7 @@ mccpiofs_copyout ()
|
|||||||
# $3 is a name of a file within the system (to add from or extract to)
|
# $3 is a name of a file within the system (to add from or extract to)
|
||||||
{
|
{
|
||||||
TMPDIR=/tmp/mctmpdir.$$
|
TMPDIR=/tmp/mctmpdir.$$
|
||||||
|
# FIXME: TMP RACE: when mkdir fails, we go there, anyway
|
||||||
mkdir $TMPDIR
|
mkdir $TMPDIR
|
||||||
cd $TMPDIR
|
cd $TMPDIR
|
||||||
uni_cat "$1" | cpio -icumd "$2" 2>/dev/null
|
uni_cat "$1" | cpio -icumd "$2" 2>/dev/null
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -126,6 +125,7 @@ mc_lha_fs_copyin ()
|
|||||||
|
|
||||||
mc_lha_fs_run()
|
mc_lha_fs_run()
|
||||||
{
|
{
|
||||||
|
# FIXME: TMP RACE
|
||||||
trap "rm $TMPCMD; exit 0" 1 2 3 4 15
|
trap "rm $TMPCMD; exit 0" 1 2 3 4 15
|
||||||
$LHA_GET $1 $2 > $TMPCMD 2> /dev/null
|
$LHA_GET $1 $2 > $TMPCMD 2> /dev/null
|
||||||
chmod a+x $TMPCMD 2> /dev/null
|
chmod a+x $TMPCMD 2> /dev/null
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user