X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Finitrd.c;h=7b32a08a8c46d4adac82df18d62dc5bc427c5a26;hb=2600359b9b520ab386f069fbbcd656e5cdbd9b76;hp=513ed8daa0ba0e0a3299cf9f6cf2d68ec6c46e53;hpb=4dff42aa13dd726fb6b02843d0f4db4b4b330fe3;p=libguestfs.git diff --git a/daemon/initrd.c b/daemon/initrd.c index 513ed8d..7b32a08 100644 --- a/daemon/initrd.c +++ b/daemon/initrd.c @@ -1,5 +1,5 @@ /* libguestfs - the guestfsd daemon - * Copyright (C) 2009 Red Hat Inc. + * Copyright (C) 2009 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -78,7 +78,7 @@ do_initrd_list (char *path) return NULL; } - if (pclose (fp) == -1) { + if (pclose (fp) != 0) { reply_with_perror ("pclose"); free_strings (filenames); return NULL;