From: Ian Jackson Subject: [OSSTEST PATCH 2/7] TestSupport::open_unique_stashfile: Provide a RDWR filehandle Date: Tue, 29 Sep 2015 14:37:22 +0100 Message-ID: <1443533847-16987-3-git-send-email-ian.jackson@eu.citrix.com> References: <1443533847-16987-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zgv6A-0002oJ-9M for xen-devel@lists.xenproject.org; Tue, 29 Sep 2015 13:37:38 +0000 In-Reply-To: <1443533847-16987-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org The caller can then rewind and reread it if they feel like. Signed-off-by: Ian Jackson --- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 2b67e32..7b9d815 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1005,7 +1005,7 @@ sub open_unique_stashfile ($) { my $dh; for (;;) { my $df= $$leafref; - $dh= new IO::File "$stash/$df", O_WRONLY|O_EXCL|O_CREAT; + $dh= new IO::File "$stash/$df", O_RDWR|O_EXCL|O_CREAT; last if $dh; die "$df $!" unless $!==&EEXIST; next_unique_name $leafref; -- 1.7.10.4