Commit 2cd86866 by Mark Wielaard Committed by Mark Wielaard

closures.c (open_temp_exec_file_mnt): Check if getmntent_r returns NULL.

	* src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
	returns NULL.

From-SVN: r163809
parent 155c92a7
2010-08-20 Mark Wielaard <mjw@redhat.com>
* src/closures.c (open_temp_exec_file_mnt): Check if getmntent_r
returns NULL.
2010-08-09 Andreas Tobler <andreast@fgznet.ch> 2010-08-09 Andreas Tobler <andreast@fgznet.ch>
* configure.ac: Add target powerpc64-*-freebsd*. * configure.ac: Add target powerpc64-*-freebsd*.
......
...@@ -294,7 +294,7 @@ open_temp_exec_file_mnt (const char *mounts) ...@@ -294,7 +294,7 @@ open_temp_exec_file_mnt (const char *mounts)
struct mntent mnt; struct mntent mnt;
char buf[MAXPATHLEN * 3]; char buf[MAXPATHLEN * 3];
if (getmntent_r (last_mntent, &mnt, buf, sizeof (buf))) if (getmntent_r (last_mntent, &mnt, buf, sizeof (buf)) == NULL)
return -1; return -1;
if (hasmntopt (&mnt, "ro") if (hasmntopt (&mnt, "ro")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment