Blob Blame History Raw
diff -urNp isight-firmware-tools-1.0.2.orig/src/export.c isight-firmware-tools-1.0.2/src/export.c
--- isight-firmware-tools-1.0.2.orig/src/export.c	2007-12-09 21:25:28.000000000 +0530
+++ isight-firmware-tools-1.0.2/src/export.c	2008-03-21 17:48:54.000000000 +0530
@@ -130,7 +130,8 @@ export(char *filename,
 		return -1;
 	}
 
-	if ((fdo = open(output, O_WRONLY | O_CREAT | O_TRUNC)) == -1) {
+	if ((fdo = open(output, O_WRONLY | O_CREAT | O_TRUNC,
+			S_IRUSR | S_IWUSR)) == -1) {
 		g_error(_("Unable to open %s for writing."), output);
 		close (fdo);
 		return -1;
diff -urNp isight-firmware-tools-1.0.2.orig/src/extract.c isight-firmware-tools-1.0.2/src/extract.c
--- isight-firmware-tools-1.0.2.orig/src/extract.c	2008-02-01 16:58:27.000000000 +0530
+++ isight-firmware-tools-1.0.2/src/extract.c	2008-03-21 17:43:44.000000000 +0530
@@ -262,7 +262,8 @@ extract(char *filename,
 		return -1;
 	}
 
-	if ((fdo = g_open(output, O_WRONLY | O_CREAT | O_TRUNC)) == -1) {
+	if ((fdo = g_open(output, O_WRONLY | O_CREAT | O_TRUNC,
+			  S_IRUSR | S_IWUSR)) == -1) {
 		g_error(_("Unable to open %s for writing."), output);
 		close (fdo);
 		return -1;