aboutsummaryrefslogtreecommitdiff
path: root/src/null.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/null.c')
-rw-r--r--src/null.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/null.c b/src/null.c
index 7ead150..6a1b0a7 100644
--- a/src/null.c
+++ b/src/null.c
@@ -17,13 +17,13 @@
17#include "wydawca.h" 17#include "wydawca.h"
18 18
19int 19int
20null_move_file (struct file_triplet *trp, struct spool *spool, 20null_move_file (struct file_triplet *trp, const struct spool *spool,
21 enum file_type file_id, const char *reldir) 21 enum file_type file_id, const char *reldir)
22{ 22{
23 const char *file_name = trp->file[file_id].name; 23 const char *file_name = trp->file[file_id].name;
24 if (debug_level) 24 if (debug_level)
25 logmsg (LOG_DEBUG, _("%s: installing file `%s/%s'"), 25 logmsg (LOG_DEBUG, _("spool %s: installing file `%s/%s'"),
26 spool->url, reldir, file_name); 26 spool->tag, reldir, file_name);
27 UPDATE_STATS (STAT_UPLOADS); 27 UPDATE_STATS (STAT_UPLOADS);
28 if (unlink (file_name)) 28 if (unlink (file_name))
29 { 29 {
@@ -35,34 +35,34 @@ null_move_file (struct file_triplet *trp, struct spool *spool,
35} 35}
36 36
37int 37int
38null_archive_file (struct file_triplet *trp, struct spool *spool, 38null_archive_file (struct file_triplet *trp, const struct spool *spool,
39 const char *file_name, const char *reldir) 39 const char *file_name, const char *reldir)
40{ 40{
41 if (debug_level) 41 if (debug_level)
42 logmsg (LOG_DEBUG, _("%s: archiving `%s'"), spool->url, file_name); 42 logmsg (LOG_DEBUG, _("spool %s: archiving `%s'"), spool->tag, file_name);
43 UPDATE_STATS (STAT_ARCHIVES); 43 UPDATE_STATS (STAT_ARCHIVES);
44 return 0; 44 return 0;
45} 45}
46 46
47int 47int
48null_symlink_file (struct file_triplet *trp, struct spool *spool, 48null_symlink_file (struct file_triplet *trp, const struct spool *spool,
49 const char *reldir, 49 const char *reldir,
50 const char *wanted_src, const char *wanted_dst) 50 const char *wanted_src, const char *wanted_dst)
51{ 51{
52 if (debug_level) 52 if (debug_level)
53 logmsg (LOG_DEBUG, _("%s: symlinking `%s' to `%s'"), 53 logmsg (LOG_DEBUG, _("spool %s: symlinking `%s' to `%s'"),
54 spool->url, wanted_src, wanted_dst); 54 spool->tag, wanted_src, wanted_dst);
55 UPDATE_STATS (STAT_SYMLINKS); 55 UPDATE_STATS (STAT_SYMLINKS);
56 return 0; 56 return 0;
57} 57}
58 58
59int 59int
60null_rmsymlink_file (struct file_triplet *trp, struct spool *spool, 60null_rmsymlink_file (struct file_triplet *trp, const struct spool *spool,
61 const char *reldir, const char *file_name) 61 const char *reldir, const char *file_name)
62{ 62{
63 if (debug_level) 63 if (debug_level)
64 logmsg (LOG_DEBUG, _("%s: removing symlink `%s/%s'"), 64 logmsg (LOG_DEBUG, _("spool %s: removing symlink `%s/%s'"),
65 spool->url, reldir, file_name); 65 spool->tag, reldir, file_name);
66 UPDATE_STATS (STAT_RMSYMLINKS); 66 UPDATE_STATS (STAT_RMSYMLINKS);
67 return 0; 67 return 0;
68} 68}

Return to:

Send suggestions and report system problems to the System administrator.