Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* malloc/memusage.c (me): Allow creating the output file.
  • Loading branch information
Ulrich Drepper committed Aug 13, 2001
1 parent e6df269 commit 6f47f64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2001-08-13 Ulrich Drepper <drepper@redhat.com>

* malloc/memusage.c (me): Allow creating the output file.

* sysdeps/unix/sysv/linux/Makefile: Remove -fkeep-inline-functions
flag for init-first.

Expand Down
3 changes: 2 additions & 1 deletion malloc/memusage.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
02111-1307 USA. */

#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <signal.h>
Expand Down Expand Up @@ -206,7 +207,7 @@ me (void)

outname = getenv ("MEMUSAGE_OUTPUT");
if (outname != NULL && outname[0] != '\0'
&& access (outname, R_OK | W_OK) == 0)
&& (access (outname, R_OK | W_OK) == 0 || errno == ENOENT))
{
fd = creat (outname, 0666);

Expand Down

0 comments on commit 6f47f64

Please sign in to comment.