[SCM] gwc/master: Don't set the executable bit on the generated undo files (Closes: #277615).

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Tue May 17 20:32:20 UTC 2011


The following commit has been merged in the master branch:
commit d6af25a545931af5883df044b4d7cb8394412439
Author: Alessio Treglia <alessio at debian.org>
Date:   Tue May 17 22:24:25 2011 +0200

    Don't set the executable bit on the generated undo files (Closes: #277615).

diff --git a/debian/patches/0002-fix_undo_files_permissions.patch b/debian/patches/0002-fix_undo_files_permissions.patch
new file mode 100644
index 0000000..236963c
--- /dev/null
+++ b/debian/patches/0002-fix_undo_files_permissions.patch
@@ -0,0 +1,31 @@
+Description: Don't set the executable bit on the generated undo files.
+Author: Alessio Treglia <alessio at debian.org>
+Bug-Debian: http://bugs.debian.org/277615
+Forwarded:
+---
+ sample_block.c |    2 +-
+ undo.c         |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+--- gwc.orig/undo.c
++++ gwc/undo.c
+@@ -55,7 +55,7 @@ int start_save_undo(char *undo_msg, stru
+ 
+     sprintf(filename, "gwc_undo_%d.dat", undo_level) ;
+ 
+-    if( (undo_fd = open(filename, O_CREAT|O_TRUNC|O_RDWR,S_IRWXU)) == -1) {
++    if( (undo_fd = open(filename, O_CREAT|O_TRUNC|O_RDWR,S_IRUSR | S_IWUSR)) == -1) {
+ 	warning("Can't save undo information") ;
+ 	return -1 ;
+     }
+--- gwc.orig/sample_block.c
++++ gwc/sample_block.c
+@@ -48,7 +48,7 @@ void save_sample_block_data(struct sound
+     char l ;
+     int fd ;
+     sprintf(buf, "%s.gwc", wave_filename) ;
+-    fd = open(buf, O_WRONLY | O_TRUNC | O_CREAT, S_IRWXU) ;
++    fd = open(buf, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR) ;
+ 
+     sprintf(buf, "gwc %d %d", GWC_VERSION_MAJOR, GWC_VERSION_MINOR) ;
+     l = (char)strlen(buf) ;
diff --git a/debian/patches/series b/debian/patches/series
index b5c7eee..ae1708d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-buildsystem.patch
+0002-fix_undo_files_permissions.patch

-- 
gwc packaging



More information about the pkg-multimedia-commits mailing list