aboutsummaryrefslogtreecommitdiff
path: root/src/diskio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diskio.c')
-rw-r--r--src/diskio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/diskio.c b/src/diskio.c
index bab5cb8..751d684 100644
--- a/src/diskio.c
+++ b/src/diskio.c
@@ -402,24 +402,30 @@ static int
402replace_allowed_p (struct file_triplet *trp) 402replace_allowed_p (struct file_triplet *trp)
403{ 403{
404 const char *val; 404 const char *val;
405 405
406 if (trp->version < 102) 406 if (trp->version < 102)
407 return 1; 407 return 1;
408 408
409 if (directive_get_value (trp, "replace", &val)) 409 if (directive_get_value (trp, "replace", &val))
410 return 1; 410 return 1;
411 return strcmp (val, "true") == 0; 411 return strcmp (val, "true") == 0;
412} 412}
413 413
414const char *
415dir_get_path (struct spool *sp)
416{
417 return sp->source_dir;
418}
419
414/* Move the part FILE_ID of the triplet TRP between the directories in 420/* Move the part FILE_ID of the triplet TRP between the directories in
415 TRP->SPOOL. TRP->RELATIVE_DIR gives relative directory (i.e. the 421 TRP->SPOOL. TRP->RELATIVE_DIR gives relative directory (i.e. the
416 directory part of the file name) for backup purposes. 422 directory part of the file name) for backup purposes.
417 423
418 Do nothing if dry_run_mode is set. */ 424 Do nothing if dry_run_mode is set. */
419int 425int
420dir_move_file (struct file_triplet *trp, enum file_type file_id) 426dir_move_file (struct file_triplet *trp, enum file_type file_id)
421{ 427{
422 char *dst_file; 428 char *dst_file;
423 int rc = 0; 429 int rc = 0;
424 const struct spool *spool = trp->spool; 430 const struct spool *spool = trp->spool;
425 char *dst_dir = create_directory (spool->dest_dir, trp->relative_dir); 431 char *dst_dir = create_directory (spool->dest_dir, trp->relative_dir);

Return to:

Send suggestions and report system problems to the System administrator.