public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] runltp: avoid using --tmpdir with mktemp
@ 2012-08-02 15:42 Simon Xu
  2012-08-08  5:21 ` Wanlong Gao
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Xu @ 2012-08-02 15:42 UTC (permalink / raw)
  To: ltp-list

'--tmpdir' is not supported by older mktemp, and runltp encounters error:

mktemp: invalid option -- -
Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]

Signed-off-by: Simon Xu <xu.simon@oracle.com>
---
 runltp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runltp b/runltp
index 0d77a6e..f94f1f8 100755
--- a/runltp
+++ b/runltp
@@ -693,7 +693,7 @@ main()
     fi
 
     if [ -n "$DEVICE" ]; then
-        mnt_pnt=`mktemp -d --tmpdir=${TMP} mnt_pnt.XXXXXX`
+        mnt_pnt=`mktemp -d "${TMP}/mnt_pnt.XXXXXX"`
         if [ -n "$DEVICE_FS_TYPE" ]; then
             mount -t $DEVICE_FS_TYPE $DEVICE $mnt_pnt
         else
-- 
1.7.11.4


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH 1/1] runltp: avoid using --tmpdir with mktemp
  2012-08-02 15:42 [LTP] [PATCH 1/1] runltp: avoid using --tmpdir with mktemp Simon Xu
@ 2012-08-08  5:21 ` Wanlong Gao
  0 siblings, 0 replies; 2+ messages in thread
From: Wanlong Gao @ 2012-08-08  5:21 UTC (permalink / raw)
  To: Simon Xu; +Cc: ltp-list

On 08/02/2012 11:42 PM, Simon Xu wrote:
> '--tmpdir' is not supported by older mktemp, and runltp encounters error:
> 
> mktemp: invalid option -- -
> Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]
> 
> Signed-off-by: Simon Xu <xu.simon@oracle.com>

Pushed, thank you.

Wanlong Gao


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-08  5:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-02 15:42 [LTP] [PATCH 1/1] runltp: avoid using --tmpdir with mktemp Simon Xu
2012-08-08  5:21 ` Wanlong Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox