diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-04-15 08:36:13 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-04-15 09:15:45 +0300 |
commit | 6398c8db62d953b80fa83093a2e05f41b782f662 (patch) | |
tree | 776bc57a9e9459c52b910a3a0caa3c09b77f4c23 /src/cmdline.opt | |
parent | 5b272a2b955eb426bcb6abe5be6ca4c87705f49e (diff) | |
download | wydawca-6398c8db62d953b80fa83093a2e05f41b782f662.tar.gz wydawca-6398c8db62d953b80fa83093a2e05f41b782f662.tar.bz2 |
When processing spool requests, handle each completed triplet in spool.
Previously wydawca used to take optional second parameter - a list of
submitter UIDs. If given this list, it would process only those triplets
that had been uploaded by one of these UIDs. This proved to be
unnecessary.
The same change is applied to the notification protocol. Only the spool
name is required. The second word in the request (user name) is now
silently ignored.
* src/wydawca.h (struct wy_triplet): Remove const qualifier from the
spool member. Remove jq_prev and jq_next pointers.
(struct job_spool_id): Remove.
(job_schedule_spool): Change signature.
* src/job.c (struct job): Replace job_spool with a pointer to
spool.
(triplet_jq_unlink,jq_clear): Remove.
(job_printable): Change formatting of JOB_SPOOL jobs.
(job_locate): Update.
(wydawca_scanner): Update.
* src/net.c (handle_connection): Ignore second word in the request.
* src/process.c (spool_add_new_file): Change signature. UIDs are
no longer needed.
Return a pointer to the affected triplet.
(scan_spool): Change signature.
* src/triplet.c (register_file): Return pointer to the affected triplet.
(check_triplet_state): Remove the noauth parameter.
(triplet_enqueue): New function.
(triplet_commit): New function.
(spool_commit_triplets): Remove the tplist parameter. Process all
complete triplets in the spool.
(link_processable_triplets): Remove.
* src/verify.c (verify_directive_file): Remove the noauth parameter.
* src/watcher.c (process_event): Enqueue created triplets.
* src/wydawca.c (main): Don't take any UID arguments.
* tests/inotify-ok.at: The version statement is printed once. Update
the expected output.
* tests/inotify-rmsymlink.at: Likewise.
* tests/inotify-symlink.at: Likewise.
* tests/inotify-unatt01.at: Likewise.
Diffstat (limited to 'src/cmdline.opt')
-rw-r--r-- | src/cmdline.opt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmdline.opt b/src/cmdline.opt index bcb92d8..fae3cb1 100644 --- a/src/cmdline.opt +++ b/src/cmdline.opt @@ -43,9 +43,9 @@ enabled_spool_p(const struct spool *spool) OPTIONS_BEGIN("wydawca", [<wydawca synchronizes files from a set of upload directories with the corresponding distribution sites>], - [<UID [UID...]>], + [<>], [<gnu>], - [<copyright_year=2007-2019>], + [<copyright_year=2007-2020>], [<copyright_holder=Sergey Poznyakoff>]) GROUP(Selecting program mode) |