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 /lib | |
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.)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backup-files.c | 5 |
1 files changed, 3 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; } |