[uClibc-cvs] uClibc/ldso/ldso ldso.c,1.86,1.87

Erik Andersen andersen at uclibc.org
Sun Feb 8 07:57:40 UTC 2004


Update of /var/cvs/uClibc/ldso/ldso
In directory nail:/tmp/cvs-serv9620

Modified Files:
	ldso.c 
Log Message:
Add some permissions when creating the logfile


Index: ldso.c
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/ldso.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- ldso.c	7 Feb 2004 11:30:33 -0000	1.86
+++ ldso.c	8 Feb 2004 07:57:37 -0000	1.87
@@ -314,11 +314,11 @@
 	      filename[len1] = '.';
 	      _dl_strcpy (&filename[len1+1], tmp1);
 
-	      _dl_debug_file= _dl_open (filename, O_WRONLY|O_CREAT);
+	      _dl_debug_file= _dl_open (filename, O_WRONLY|O_CREAT, 0644);
 	      if (_dl_debug_file<0)
 	      {
-		_dl_debug_file = 2;
-		_dl_dprintf (2, "can't open file: '%s'\n",filename);
+			  _dl_debug_file = 2;
+			  _dl_dprintf (2, "can't open file: '%s'\n",filename);
 	      }
 	    }
 	  }




More information about the uClibc-cvs mailing list