All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jungsoo Son" <jungsoo.son@lge.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] Fix the bug of the temp-files removing
Date: Tue, 16 Jul 2013 15:41:26 +0900	[thread overview]
Message-ID: <005001ce81ef$7ea7dc20$7bf79460$@lge.com> (raw)

The shell command to remove all the temp-files created had a bug that
try to remove /dev/null. If the ltp is run with root permission the
/dev/null will be removed.

Signed-off-by: jungsoo.son <jungsoo.son@lge.com>
---
 testscripts/test_robind.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testscripts/test_robind.sh b/testscripts/test_robind.sh
index 142678a..4c01f4e 100755
--- a/testscripts/test_robind.sh
+++ b/testscripts/test_robind.sh
@@ -193,7 +193,7 @@ function testdir
         echo >> $PASSLOG
     fi
     # Remove all the temp-files created.
-    eval rm -rf ${TMPDIR}/${dir}/* > /dev/null 2>&1 /dev/null || true
+    eval rm -rf ${TMPDIR}/${dir}/* > /dev/null 2>&1 || true
     unset TDIRECTORY
     popd
 }
-- 
1.7.9.5


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

             reply	other threads:[~2013-07-16  6:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16  6:41 Jungsoo Son [this message]
2013-07-16 12:50 ` [LTP] [PATCH] Fix the bug of the temp-files removing chrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='005001ce81ef$7ea7dc20$7bf79460$@lge.com' \
    --to=jungsoo.son@lge.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.