diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2009-11-22 21:33:41 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2009-11-22 21:33:41 +0100 |
commit | 714b8e6fa1f52229637e75cac96474e0ba84b87d (patch) | |
tree | a496bc576a327951502416e288e288b7d5a836c9 | |
parent | 64f703c1e90e55ea8665bd2da755efd5b3a813a6 (diff) | |
download | quilt-714b8e6fa1f52229637e75cac96474e0ba84b87d.tar.gz |
- No longer create backup files of new files with file mode 0.
(This has been changed in GNU patch 2.6 as well.)
-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 |