xfs
[Top] [All Lists]

[PATCH] 125 run ftrunc with relative path

To: xfs@xxxxxxxxxxx
Subject: [PATCH] 125 run ftrunc with relative path
From: Lukas Czerner <lczerner@xxxxxxxxxx>
Date: Fri, 16 Apr 2010 09:27:17 +0200 (CEST)
Cc: Eric Sandeen <esandeen@xxxxxxxxxx>, Lukas Czerner <lczerner@xxxxxxxxxx>
User-agent: Alpine 2.00 (LFD 1167 2008-08-23)
>From 16588d733e681954386f1b92dd6e47cfef92a207 Mon Sep 17 00:00:00 2001
From: Lukas Czerner <lczerner@xxxxxxxxxx>
Date: Tue, 13 Apr 2010 19:34:07 +0200
Subject: [PATCH] 125 run ftrunc with relative path

Since ftrunc is invoked with su $qa_user, it can fail when absolute path
is not accessible to everyone.
---
 125 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/125 b/125
index e84109a..9a29941 100755
--- a/125
+++ b/125
@@ -61,7 +61,7 @@ touch $TESTFILE
 chmod a+rw $TESTDIR
 chmod a+rw $TESTFILE
 
-su $qa_user -c "$here/src/ftrunc -f $TESTFILE"
+su $qa_user -c "./src/ftrunc -f $TESTFILE"
 
 if [ "$?" != "0" ];  then
     echo src/ftrunc returned non 0 status!
-- 
1.6.6.1

<Prev in Thread] Current Thread [Next in Thread>