All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] Return immediately when the ZOO file couldn't be opened, prevent crash later
@ 2009-06-08 11:33 Jiri Palecek
  2009-06-09 18:25 ` Subrata Modak
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Palecek @ 2009-06-08 11:33 UTC (permalink / raw)
  To: ltp-list

Hello,

there was a crash in pan when the zoofile couldn't be opened; this patch fixes it by disallowing the zoo_open function to continue.

Regards
    Jiri Palecek

Signed-off-by: Jiri Palecek <jpalecek@web.de>

---
 pan/zoolib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/pan/zoolib.c b/pan/zoolib.c
index 3e31733..72ddfb0 100644
--- a/pan/zoolib.c
+++ b/pan/zoolib.c
@@ -104,6 +104,7 @@ zoo_open(char *zooname)
 		snprintf(zoo_error, ZELEN, 
 				"Could not open zoo as \"%s\", errno:%d %s", 
 				zooname, errno, strerror(errno));
+		return 0;
 	    }
 	    fclose(new_zoo);
 	    new_zoo = fopen(zooname, "r+");
-- 
1.6.2.4


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] Return immediately when the ZOO file couldn't be opened, prevent crash later
  2009-06-08 11:33 [LTP] [PATCH] Return immediately when the ZOO file couldn't be opened, prevent crash later Jiri Palecek
@ 2009-06-09 18:25 ` Subrata Modak
  0 siblings, 0 replies; 2+ messages in thread
From: Subrata Modak @ 2009-06-09 18:25 UTC (permalink / raw)
  To: Jiri Palecek; +Cc: ltp-list

On Mon, 2009-06-08 at 13:33 +0200, Jiri Palecek wrote: 
> Hello,
> 
> there was a crash in pan when the zoofile couldn't be opened; this patch fixes it by disallowing the zoo_open function to continue.
> 
> Regards
>     Jiri Palecek
> 
> Signed-off-by: Jiri Palecek <jpalecek@web.de>

Thanks.

Regards--
Subrata

> 
> ---
>  pan/zoolib.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/pan/zoolib.c b/pan/zoolib.c
> index 3e31733..72ddfb0 100644
> --- a/pan/zoolib.c
> +++ b/pan/zoolib.c
> @@ -104,6 +104,7 @@ zoo_open(char *zooname)
>  		snprintf(zoo_error, ZELEN, 
>  				"Could not open zoo as \"%s\", errno:%d %s", 
>  				zooname, errno, strerror(errno));
> +		return 0;
>  	    }
>  	    fclose(new_zoo);
>  	    new_zoo = fopen(zooname, "r+");


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-09 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-08 11:33 [LTP] [PATCH] Return immediately when the ZOO file couldn't be opened, prevent crash later Jiri Palecek
2009-06-09 18:25 ` Subrata Modak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.