path: root/src/verify.c
diff options
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-24 00:49:40 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-24 00:57:16 +0200
commit4213ec5ef9695aa504938c0e764ba9a4f08921b2 (patch)
tree88ac2b2eb01337f0924d687df38b2a163bc94e11 /src/verify.c
parent337a06f32fb530e0e0884fef2f5f630cca9911a1 (diff)
Initial implementation of daemon mode.
* gconf/gconf-gram.y (string_to_sockaddr_: Take struct gconf_sockaddr as the first argument. * gconf/gconf.h (struct gconf_sockaddr): New data type. * src/job.c, src/net.c, src/pidfile.c: New files. * src/Makefile.am (wydawca_SOURCES): Add job.c, net.c, pidfile.c * src/cmdline.opt: New options: --cron (change semantics), --force, --foreground, --single-process, --spool * src/wydawca.c: New daemon mode. * src/config.c: New statements: spool.alias, daemon, foreground, single-process, wakeup-interval, pidfile, listen * src/directive.c, src/diskio.c, src/gpg.c, src/mail.c, src/null.c, src/process.c, src/triplet.c, src/verify.c, src/vtab.c, src/wydawca.h: use static struct spool wherever feasible. * src/triplet.c: New meta-variable "spool" * tests/etc/wydawca.rcin: Update. * tests/upload-dry.at: Update.
Diffstat (limited to 'src/verify.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/verify.c b/src/verify.c
index 14651d2..522b865 100644
--- a/src/verify.c
+++ b/src/verify.c
@@ -89,13 +89,13 @@ make_default_meta (struct metadef def[5], const char *user,
def[4].kw = NULL;
/* Verify if USER has upload rights on the directory (project) requested
by TRP */
-check_access_rights (struct file_triplet *trp, struct spool *spool,
+check_access_rights (struct file_triplet *trp, const struct spool *spool,
const char *user)
struct access_method *method = spool->access_method[verify_method];
int rc;
char *command;
const char *result;
@@ -140,13 +140,13 @@ check_access_rights (struct file_triplet *trp, struct spool *spool,
return 0;
-verify_directive_file (struct file_triplet *trp, struct spool *spool)
+verify_directive_file (struct file_triplet *trp, const struct spool *spool)
struct passwd *pw;
char *command;
struct access_method *method = spool->access_method[gpg_key_method];
const char *pubkey;
int rc;

Return to:

Send suggestions and report system problems to the System administrator.