diff options
-rw-r--r-- | etc/wydawca.rc | 8 | ||||
-rw-r--r-- | src/wydawca.c | 30 |
2 files changed, 4 insertions, 34 deletions
diff --git a/etc/wydawca.rc b/etc/wydawca.rc index 5a21376..99198dc 100644 --- a/etc/wydawca.rc +++ b/etc/wydawca.rc @@ -59,13 +59,13 @@ access-method project-owner { "WHERE user_group.user_id=user.user_id " "AND user_group.group_id=groups.group_id " "AND user_group.admin_flags = 'A' " - "AND groups.unix_group_name='$p'"); + "AND groups.unix_group_name='$p'"; } access-method user-data { type sql; params (default); - query "SELECT email, realname FROM user WHERE user_name='${user}'"); + query "SELECT email, realname FROM user WHERE user_name='${user}'"; } access-method verify-user { @@ -76,13 +76,13 @@ access-method verify-user { "WHERE user_group.user_id=user.user_id " "AND user_group.group_id=groups.group_id " "AND user_group.admin_flags = 'A' " - "AND groups.unix_group_name='$p' AND user.user_name='$u'"); + "AND groups.unix_group_name='$p' AND user.user_name='$u'"; } access-method gpg-key { type sql; params (default); - query "SELECT gpg_key FROM user WHERE user_name='$u'"); + query "SELECT gpg_key FROM user WHERE user_name='$u'"; } ############################################################################# diff --git a/src/wydawca.c b/src/wydawca.c index 5df2638..26b240d 100644 --- a/src/wydawca.c +++ b/src/wydawca.c @@ -36,36 +36,6 @@ int preprocess_only = 0; unsigned wydawca_stat[MAX_STAT]; -void -usage () -{ - printf ("usage: wydawca [OPTIONS]\n"); - printf ("wydawca synchronizes files from a set of upload directories with the\n" - "corresponding distribution sites.\n"); - printf ("\n"); - printf ("OPTIONS are:\n"); - printf (" -c, --config-file=FILE use FILE instead of the default configuration\n" - " file\n"); - printf (" --cron, --syslog log to syslog\n"); - printf (" -d, --debug increase debugging level by 1\n"); - printf (" -e, --stderr log to stderr\n"); - printf (" -I, --include-directory[=DIR] set default include directory\n"); - printf (" -n, --dry-run do nothing, print almost everything;\n" - " implies `--debug --stderr'; use additional\n" - " `--debug' options to get even more info\n"); - printf (" -t, --lint parse configuration file and exit\n"); - printf (" -h, --help print this help list\n"); - printf (" -v, --version print program version and exit\n"); - - printf ("\nThe defaults are:\n"); - printf ("Configuration file: %s\n", conffile); - printf ("Syslog facility: %s\n", - mu_syslog_facility_to_string (log_facility)); - printf ("Syslog tag: %s\n", syslog_tag); - printf ("\n"); - printf ("Report bugs to <%s>\n", PACKAGE_BUGREPORT); -} - /* Logging */ void |