aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2023-05-02Add interface for closing file descriptors greater than or equal to the ↵HEADmasterSergey Poznyakoff7
given one.
2023-05-02Remove uses of obsolete and obsolescent autoconf macros.Sergey Poznyakoff3
2023-05-02Use POSIX dl* functions instead of lt_* wrappersSergey Poznyakoff12
* Makefile.am (SUBDIRS): Remove libltdl. * configure.ac: Remove LT_PREREQ et al. * include/wydawca/wydawca.h (WY_EXPORT): Rewrite for backward compatibility. * src/Makefile.am (LDADD): Use -ldl. * src/module.c: Rewrite using plain dl* calls. * tests/atlocal.in (WY_MODDIR): Change definition. * tests/check-notify.at: Use .so suffix instead of .la * tests/mailnotify.at: Likewise. * tests/mailstats.at: Likewise.
2023-03-30Enforce unique spool source directoriesSergey Poznyakoff6
* src/config.c (cb_spool): Check if spool's source directory is unique. Bail out if it is not. * src/spool.c (wydawca_find_spool_source): New function. * src/wydawca.h (spool): New fields: inode, dev, locus. (wydawca_find_spool_source): New proto. * tests/spoolsrc.at: New file. * tests/Makefile.am: Add spoolsrc.at * tests/testsuite.at: Include spoolsrc.at
2023-03-26Add emacs settingsSergey Poznyakoff1
2023-03-26Protect the in_processing field in triplet by a mutexSergey Poznyakoff2
2023-03-24BugfixSergey Poznyakoff3
* src/triplet.c (remove_triplet_unlocked): Set the in_processing flag. This complements 4db1e89561d. * src/verify.c (fill_project_name): Mark as static. * src/wydawca.h (fill_project_name): Remove prototype.
2022-08-21Fix testsuiteSergey Poznyakoff2
2022-08-21BugfixesSergey Poznyakoff3
* modules/mailutils/mod_mailutils.c (get_uploader_email): Always provide explanation when returning NULL. (t_notify): Don't attempt to send message if unable to expand template. * src/gpg.c (checksig): Emit wy_ev_bad_ownership if unable to determine uploader. * src/triplet.c: Avoid dereferencing NULL tmp->uploader. Notice that tmp->spool should never be NULL, so no special check for that is made.
2022-06-02Document the -l optionSergey Poznyakoff1
2022-06-01Whitespace cleanupSergey Poznyakoff52
2022-06-01Support arbitrary order of directives in a directive fileSergey Poznyakoff14
* src/cmdline.opt: New option -l (--max-severity). * src/verify.c (fill_project_name): Check directive file format here. * src/wydawca.c (wy_log_max_severity): New global. (wy_vlog): Don't log the message if its severity is greater than wy_log_max_severity. * src/wydawca.h (wy_log_max_severity): New extern. * src/directive.c (verify_directive_format): Rewrite. Process the replace directive here. * tests/Makefile.am: Add new file. * tests/testsuite.at: Include new file. * tests/atlocal.in (wy_create_directive): New option -c: create initially empty file. * tests/dry_run01.at: Update expected text. * tests/upload01.at: Likewise. * tests/upload04.at: Test whether replace directory works no matter what its position relative to filename directive. * tests/verify.at: New file. * NEWS: Update. * grecs: Update.
2022-01-25Version 4.0.90Sergey Poznyakoff4
* NEWS: Document changes. * configure.ac: Raise patchlevel number. * src/directive.c (run_check_script): Remove improperly used static qualifier. * src/triplet.c: Fix indenting.
2022-01-23Upgrade grecs to 94e69c9570 (Fix preprocessor mode)Sergey Poznyakoff1
2022-01-18Upgrade grecs to 08f200da1cSergey Poznyakoff1
2022-01-18Upgrade grecs to c3862f05d1 (fix recognition of C-style comments)Sergey Poznyakoff27
2022-01-17Upgrade grecs to 03044f768f (fix preprocessing mode)Sergey Poznyakoff1
2022-01-13Update copyright yearsSergey Poznyakoff89
2022-01-13Upgrade to lates grecsSergey Poznyakoff6
* configure.ac (DEFAULT_INCLUDE_PATH): New variable. * grecs: Update to 95ea130c00. * src/Makefile.am (AM_CPPFLAGS): Remove DEFAULT_VERSION_INCLUDE_DIR and DEFAULT_INCLUDE_DIR, add DEFAULT_INCLUDE_PATH. * src/cmdline.opt: Include preprocessor information in help output. Change handling of the -I option: it is now appended to the preprocessor arguments, just like -D. * src/config.c (cb_supp_groups): Bugfix: used wrong variable in diagnostic message. * src/wydawca.c (config_init): Remove call to grecs_include_path_setup.
2022-01-13BugfixesSergey Poznyakoff2
* src/gpg.c (triplet_gpgme_ctx): Check if the gpgme imports field is not NULL before referencing it * tests/etc/Makefile.am (database.cf): Depend on gnupg (fixes parallel builds).
2021-04-09Run the distribution verification script in a separate temporary directory.Sergey Poznyakoff3
The temporary directory is removed when the script terminates. * src/directive.c (run_check_script): Create a separate temporary directory to run the script in. * src/gpg.c (wy_rmdir_r, wy_tempdir): New functions. * src/wydawca.h (wy_rmdir_r, wy_tempdir): New protos.
2021-01-06Version 4.0.3release-4.0.3Sergey Poznyakoff3
2021-01-06Fix archivation/removalSergey Poznyakoff1
* src/diskio.c (dir_archive_file): Use do_archive_file to remove signature. If archive_signatures is zero, remove the signature.
2021-01-06Update copyright yearsSergey Poznyakoff90
2020-10-12Version 4.0.2release-4.0.2Sergey Poznyakoff3
2020-10-12BugfixesSergey Poznyakoff2
* src/config.c (cb_spool): Don't open source_dir, as it may not exist yet. (create_spool_dirs): Open source_dir here. * src/wydawca.c (main): Initialize grecs_print_diag_fun.
2020-07-16Update NEWSSergey Poznyakoff2
2020-07-16Work over a bug in mailutilsSergey Poznyakoff2
Mailutils up to commit a0f754eb81 was unable to send multiple mails over a single SMTP mailer in multiple transactions. This commit works over this bug by creating a new mailer object for each mail. This commit historically precedes 3d9bdf4a0e which inadvertently modified the same file (modules/mailutils/mod_mailutils.c).
2020-06-14Use grecs with wordsplit v1.1Sergey Poznyakoff2
2020-05-17Fix deadlock at wy_vlogSergey Poznyakoff8
* src/stat.c: New file. * src/wydawca.c (wy_log): Don't touch statistic counters. This causes deadlock when wy_v?log is called from statistic-reporting module. * src/wydawca.h (wydawca_stat_log): Remove proto. * src/gpg.c: Increase WY_STAT_ERRORS explicitly. * src/triplet.c: Likewise. * src/verify.c: Likewise. * tests/dry_run01.at: Fix expected output. * tests/upload01.at: Likewise.
2020-05-17Remove timersSergey Poznyakoff8
2020-05-17Enable automatic reconnection in mysqlSergey Poznyakoff1
* src/sql.c (sql_init_dictionary): Enable automatic reconnection (sql_open): Call mysql_ping
2020-05-16BugfixSergey Poznyakoff1
* src/triplet.c (triplet_enqueue): Create thread in detached state.
2020-05-02Update NEWS and configure.acSergey Poznyakoff2
2020-05-02Fix syslog logging if print-priority is set to truerelease-4.0.1Sergey Poznyakoff1
2020-05-02Version 4.0release-4.0Sergey Poznyakoff4
2020-04-30Revise the triplet names. Update the docs.Sergey Poznyakoff6
2020-04-30Change replace handlingSergey Poznyakoff9
* 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.
2020-04-29Minor changeSergey Poznyakoff1
2020-04-29Proof-read the docsSergey Poznyakoff1
2020-04-29Minor changes.Sergey Poznyakoff2
* src/config.c (config_init): Place the user include directory before the version-specific include directory. * src/triplet.c (expand_relative_dir): Use trp->relative_dir).
2020-04-29Skip tests if running as a privileged userSergey Poznyakoff2
2020-04-29Change the default log facility to daemonSergey Poznyakoff3
2020-04-29Improve statistic reporter scheduling.Sergey Poznyakoff9
Use crontab format specification to define the frequency of statistic report generation. * src/wydawca.h (stat_report_schedule): New variable. Replaces stat_report_interval. * configure.ac: Check for struct tm.tm_gmtoff. * src/config.c: New keyword: stat-report-schedule. * src/micron.c: New file. * src/micron.h: New file. * src/Makefile.am: Add new files. * src/timer.c (wy_thr_stat): Use micron scheduler. * doc/wydawca.texi: Document stat-report-schedule. * NEWS: Document stat-report-schedule.
2020-04-27Replace the "finish" event with "statistics".Sergey Poznyakoff10
2020-04-27Use BSD queue macros to implement queues and linked lists.Sergey Poznyakoff15
2020-04-27Minor improvementSergey Poznyakoff1
* src/directive.c (directive_parse): Optimize two sequential directives referring for filename and filename.sig
2020-04-26Support both new and legacy usage of -dSergey Poznyakoff2
2020-04-26Add missing descriptions to the test programsSergey Poznyakoff4
2020-04-26Minor changesSergey Poznyakoff8
* doc/wydawca.texi: Fix documentation of ${timer:wydawca} * etc/wydawca.rc: Rename to etc/wydawca.conf. Edit. * src/triplet.c: The "wydawca" timer is synonymous to "spool". * src/wydawca.h (WY_TIMER_WYDAWCA): Remove.

Return to:

Send suggestions and report system problems to the System administrator.