aboutsummaryrefslogtreecommitdiff
path: root/src/triplet.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-08-20 13:54:40 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-08-20 13:54:40 +0000
commit5d2f6b08d164d0106ef2377ceb01393226eeafef (patch)
tree3939f57e0aeba6dadca64eaf400ae42873a4fd6f /src/triplet.c
parent39a9fb6ab567b48ac8c38b98143d6089e9d16709 (diff)
downloadwydawca-5d2f6b08d164d0106ef2377ceb01393226eeafef.tar.gz
wydawca-5d2f6b08d164d0106ef2377ceb01393226eeafef.tar.bz2
* jabberd/Makefile.am, cvs/Makefile.am, ckaliases/Makefile.am,
acinclude.m4, Makefile.am: Add copyright statements * wydawca/sql.c (trim_length): Move to verify.c * wydawca/verify.c (trim_length, trim) (check_access_rights): New functions (expand_param): Export (verify_triplet): Call verify_directive_format and check_access_rights * wydawca/wydawca.h (trim_length, trim, directive_parse) (directive_get_value, directive_pack_version) (directive_version_in_range_p, verify_directive_format) (directive_first, directive_next, process_directives) (create_directory, move_file): New functions (MIN_DIRECTIVE_VERSION,MAX_DIRECTIVE_VERSION) (MKDIR_PERMISSIONS,CREAT_PERMISSIONS): New defines * wydawca/gpg.c (wydawca_gpg_homedir): Return a meaningful value (verify_directive_signature): Call directive_parse * wydawca/process.c (parse_file_name): Return void * wydawca/directive.c: New file * wydawca/diskio.c: New file * wydawca/triplet.c (triplet_processor): Call process_directives (enumerate_triplets): Arg is not const * wydawca/Makefile.am: Add new sources * configure.ac: Check for sendfile git-svn-id: file:///svnroot/wydawca/trunk@281 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
Diffstat (limited to 'src/triplet.c')
-rw-r--r--src/triplet.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/triplet.c b/src/triplet.c
index 220a765..b2a64b7 100644
--- a/src/triplet.c
+++ b/src/triplet.c
@@ -122,7 +122,7 @@ static bool
triplet_processor (void *data, void *proc_data)
{
struct file_register *reg = data;
- const struct directory_pair *dpair = proc_data;
+ struct directory_pair *dpair = proc_data;
if (debug_level)
logmsg (LOG_DEBUG, "FILE %s, DIST=%s, SIG=%s, DIRECTIVE=%s",
@@ -136,7 +136,8 @@ triplet_processor (void *data, void *proc_data)
if (debug_level)
logmsg (LOG_DEBUG, "Processing triplet `%s'", reg->name);
if (verify_triplet (reg, dpair) == 0)
- /*FIXME install_triplet (reg, dpair)*/;
+ process_directives (reg, dpair);
+ /* FIXME: if only directive file exists? */
else
remove_triplet (reg);
}
@@ -147,9 +148,9 @@ triplet_processor (void *data, void *proc_data)
}
void
-enumerate_triplets (const struct directory_pair *dpair)
+enumerate_triplets (struct directory_pair *dpair)
{
if (debug_level)
logmsg (LOG_DEBUG, "Processing files for %s", dpair->dest_dir);
- hash_do_for_each (file_table, triplet_processor, (void*)dpair);
+ hash_do_for_each (file_table, triplet_processor, dpair);
}

Return to:

Send suggestions and report system problems to the System administrator.