WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] dup and open error value is -1, not < 0

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] dup and open error value is -1, not < 0
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Jan 2006 15:22:06 +0000
Delivery-date: Tue, 24 Jan 2006 15:31:18 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User vhanquez@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID df36ac1ddcbfee1c05e8e264c905e1be553d0cf9
# Parent  3a62d89787883bd50e066d584cbfd0ca80f38297
dup and open error value is -1, not < 0

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r 3a62d8978788 -r df36ac1ddcbf tools/xenstore/utils.c
--- a/tools/xenstore/utils.c    Mon Jan 23 15:27:00 2006
+++ b/tools/xenstore/utils.c    Tue Jan 24 10:37:44 2006
@@ -92,7 +92,7 @@
        else
                fd = open(filename, O_RDONLY, 0);
 
-       if (fd < 0)
+       if (fd == -1)
                return NULL;
 
        buffer = malloc(max+1);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] dup and open error value is -1, not < 0, Xen patchbot -unstable <=