diff options
-rw-r--r-- | lib/backup-files.c | 5 | ||||
-rw-r--r-- | quilt.changes | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lib/backup-files.c b/lib/backup-files.c index c4ae56f..e2c1ea1 100644 --- a/lib/backup-files.c +++ b/lib/backup-files.c @@ -313,8 +313,9 @@ process_file(const char *file) if (!opt_silent) printf("New file %s\n", file); - /* GNU patch creates new files with mode==0. */ - if ((fd = creat(backup, 0)) == -1) { + /* Old versions of GNU patch create new files with mode==0. + (This has been changed/fixed in patch version 2.6.) */ + if ((fd = creat(backup, 0666)) == -1) { perror(backup); goto fail; } diff --git a/quilt.changes b/quilt.changes index 244fb00..16fa888 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Sun Nov 22 21:32:39 CET 2009 - agruen@suse.de + +- No longer create backup files of new files with file mode 0. + (This has been changed in GNU patch 2.6 as well.) + +------------------------------------------------------------------- Fri Nov 20 22:43:33 CET 2009 - agruen@suse.de - Add pagination support (code based on topgit; patch from Bert |