|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST RFC 02/16] Osstest/TestSupport: In teditfileex, get the file with the requested user
e.g. If the file to be edited is only accessible to the root user,
target_getfile() would not work.
Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
Osstest/TestSupport.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index c9dada3..65324fb 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -638,7 +638,7 @@ sub teditfileex {
logm("editing $rfile to $rdest as $lfile".'{,.new}');
}
- target_getfile($ho, 60, $rfile, $lfile);
+ tgetfileex($user, $ho, 60, $rfile, $lfile);
open '::EI', "$lfile" or die "$lfile: $!";
open '::EO', "> $lfile.new" or die "$lfile.new: $!";
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |