rpms/xcdroast/devel xcdroast-0.98alpha15-prodvd.patch,1.3,1.4

Harald Hoyer (harald) fedora-extras-commits at redhat.com
Mon Aug 13 14:56:29 UTC 2007


Author: harald

Update of /cvs/pkgs/rpms/xcdroast/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28946

Modified Files:
	xcdroast-0.98alpha15-prodvd.patch 
Log Message:
added mode to open

xcdroast-0.98alpha15-prodvd.patch:

Index: xcdroast-0.98alpha15-prodvd.patch
===================================================================
RCS file: /cvs/pkgs/rpms/xcdroast/devel/xcdroast-0.98alpha15-prodvd.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- xcdroast-0.98alpha15-prodvd.patch	13 Aug 2007 14:18:22 -0000	1.3
+++ xcdroast-0.98alpha15-prodvd.patch	13 Aug 2007 14:56:27 -0000	1.4
@@ -1,6 +1,15 @@
---- xcdroast-0.98alpha15/src/io.c.cdrkit	2007-08-13 15:53:39.000000000 +0200
-+++ xcdroast-0.98alpha15/src/io.c	2007-08-13 15:56:35.000000000 +0200
-@@ -10041,6 +10041,7 @@ gchar *p;
+--- xcdroast-0.98alpha15/src/io.c.cdrkit	2007-08-13 16:52:35.000000000 +0200
++++ xcdroast-0.98alpha15/src/io.c	2007-08-13 16:53:28.000000000 +0200
+@@ -4736,7 +4736,7 @@
+ 	dolog(3, "Saving extended output to %s\n", fname);
+ 
+ 	/* write to file */
+-	fd = open(fname,O_WRONLY | O_CREAT);
++	fd = open(fname,O_WRONLY | O_CREAT, 0600);
+ 	if (fd < 0) {
+ 		g_warning("Can't open file %s for writing\n",fname);
+ 		return 1;
+@@ -10041,6 +10041,7 @@
  
  gint check_version_mkisofs(gchar *match, gchar *found) {
  gchar line[MAXLINE];
@@ -8,7 +17,7 @@
  gchar ver[MAXLINE];
  FILE *fpin;
  gchar *p;
-@@ -10055,17 +10056,22 @@ gchar *p;
+@@ -10055,17 +10056,22 @@
          }
  
  	strcpy(line,"");
@@ -32,7 +41,7 @@
  		/* failed to open - permission denied */
  		return 2;
  	}
-@@ -10107,7 +10113,7 @@ gchar line2[MAXLINE];
+@@ -10107,7 +10113,7 @@
  gchar ver[MAXLINE];
  FILE *fpin;
  gchar *p;
@@ -41,7 +50,7 @@
  	strcpy(ver,"");
  	get_wrap_path("CDDA2WAV",line);
  	strcat(line," -h 2>&1");
-@@ -10126,6 +10132,9 @@ gchar *p;
+@@ -10126,6 +10132,9 @@
                  if (fgets(line,MAXLINE,fpin) == NULL) 
                          break;
  		dodebug(11,"got: %s",line);
@@ -51,7 +60,7 @@
  		if (strncmp(line, "Version", 7) == 0) {
  			strcpy(line2, line);
  			dodebug(10,"got version: %s",line);
-@@ -10141,6 +10150,10 @@ gchar *p;
+@@ -10141,6 +10150,10 @@
  		return 2;
  	}
  
@@ -62,7 +71,7 @@
  
  	/* now line2 contains the version string of cdda2wav */
  	/* try to extract the version number */
-@@ -10176,13 +10189,14 @@ gchar *p;
+@@ -10176,13 +10189,14 @@
  
  gint check_version_readcd(gchar *match, gchar *found) {
  gchar line[MAXLINE];
@@ -78,7 +87,7 @@
  
  	dodebug(1, "calling: %s\n", line);
          if ((fpin = popen(line,"r")) == NULL) {
-@@ -10190,17 +10204,22 @@ gchar *p;
+@@ -10190,17 +10204,22 @@
          }
  
  	strcpy(line,"");




More information about the fedora-extras-commits mailing list