From f71323845cd7dd931bf842bcd8d3675cbba81b11 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 9 Dec 2002 04:28:00 +0000 Subject: [PATCH] * extfs/uar.in: Fix "copyin" command. --- vfs/ChangeLog | 4 ++++ vfs/extfs/uar.in | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 8891df964..34908e16c 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,7 @@ +2002-12-08 Pavel Roskin + + * extfs/uar.in: Fix "copyin" command. + 2002-12-06 Pavel Roskin * extfs.c (extfs_open): Don't run "copyout" if the file just has diff --git a/vfs/extfs/uar.in b/vfs/extfs/uar.in index 57268f722..dbeec9dc7 100644 --- a/vfs/extfs/uar.in +++ b/vfs/extfs/uar.in @@ -36,7 +36,11 @@ mcarfs_copyout () mcarfs_copyin () { - $XAR r $1 $2 > $3 + TMPDIR=/tmp/mctmpdir-uar.$$ + mkdir $TMPDIR || exit 1 + name=`basename $2` + (cd $TMPDIR && cp -f $3 $name && $XAR r $1 $name) + rm -rf $TMPDIR } mcarfs_rm ()