diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-04-30 00:50:23 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-04-30 00:50:23 +0300 |
commit | 757f98a5805a91c34f70bf090c01e6a9be235716 (patch) | |
tree | 8591b594212b5158c67ade4b4cbd2f4fdce8f29f /src/wydawca.h | |
parent | 40c0dbacb40fbd5fa3d1f92e18c99f38004aa0d0 (diff) | |
download | wydawca-757f98a5805a91c34f70bf090c01e6a9be235716.tar.gz wydawca-757f98a5805a91c34f70bf090c01e6a9be235716.tar.bz2 |
Change replace handling
* src/wydawca.h (struct wy_triplet): New member: replace_allowed
* src/directive.c (process_directives): Set trp->replace_allowed
depending on the directive file version and the "replace" directive.
* src/diskio.c (backup_copy): Use trp->replace_allowed
* tests/Makefile.am: Add new tests.
* tests/testsuite.at: Include new tests.
* tests/upload03.at: New test.
* tests/upload04.at: New test.
* tests/upload05.at: New test.
Diffstat (limited to 'src/wydawca.h')
-rw-r--r-- | src/wydawca.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wydawca.h b/src/wydawca.h index 95f11f0..a75edb7 100644 --- a/src/wydawca.h +++ b/src/wydawca.h @@ -189,6 +189,7 @@ struct wy_triplet { struct file_info file[FILE_TYPE_COUNT]; /* Components */ unsigned version; /* Protocol version */ int directive_verified; /* Directive file verification result */ + int replace_allowed; /* Is replacing of the existing files allowed */ struct spool *spool; /* Owning spool */ char *relative_dir; /* Directory relative to spool->dest_dir */ char **directive; /* Decoded directive pairs (key: value\0) */ |