aboutsummaryrefslogtreecommitdiff
path: root/src/verify.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-21 13:30:51 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-21 13:31:26 +0200
commit1213cf065e9b3a5fb45d00276b3d168462838c17 (patch)
tree8d8f3cb7617465139f0051c10ef80fa9c2c91369 /src/verify.c
parent5bfe69d55cff8940fd3a84ff479e6e8308b164f4 (diff)
downloadwydawca-1213cf065e9b3a5fb45d00276b3d168462838c17.tar.gz
wydawca-1213cf065e9b3a5fb45d00276b3d168462838c17.tar.bz2
Remove trailing whitespace
Diffstat (limited to 'src/verify.c')
-rw-r--r--src/verify.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/verify.c b/src/verify.c
index d8fc408..cc3121c 100644
--- a/src/verify.c
+++ b/src/verify.c
@@ -87,7 +87,7 @@ make_default_meta (struct metadef def[5], const char *user,
def[3].kw = "project";
def[3].value = (char*) project;
def[4].kw = NULL;
-}
+}
/* Verify if USER has upload rights on the directory (project) requested
by TRP */
@@ -114,11 +114,11 @@ check_access_rights (struct file_triplet *trp, struct directory_pair *dpair,
return 1;
make_default_meta (def, user, trp->project);
-
+
meta_escape (method, md, def);
command = meta_expand_string (method->query, def, NULL);
meta_free (def);
-
+
rc = method_run (method, md, command);
free (command);
method_close (method, md);
@@ -138,7 +138,7 @@ check_access_rights (struct file_triplet *trp, struct directory_pair *dpair,
notify (dpair->notification, trp, ev_bad_ownership);
return 1;
}
-
+
return 0;
}
@@ -152,10 +152,10 @@ verify_directive_file (struct file_triplet *trp, struct directory_pair *dpair)
int rc;
struct metadef def[5];
void *md;
-
+
if (!trp->file[file_directive].name)
return 1;
-
+
md = method_open (method);
if (!md)
return 1;
@@ -174,8 +174,8 @@ verify_directive_file (struct file_triplet *trp, struct directory_pair *dpair)
meta_escape (method, md, def);
command = meta_expand_string (method->query, def, NULL);
meta_free (def);
-
- rc = method_run (method, md, command);
+
+ rc = method_run (method, md, command);
free (command);
if (rc)
{
@@ -183,7 +183,7 @@ verify_directive_file (struct file_triplet *trp, struct directory_pair *dpair)
method_close (method, md);
return 1;
}
-
+
pubkey = method_result (method, md, 0, 0);
if (!pubkey || pubkey[0] == 0)
{
@@ -204,9 +204,9 @@ verify_directive_file (struct file_triplet *trp, struct directory_pair *dpair)
}
else if (debug_level)
logmsg (LOG_DEBUG, "%s: directive file signature OK", trp->name);
-
+
method_close (method, md);
-
+
if (debug_level > 1)
{
int i;

Return to:

Send suggestions and report system problems to the System administrator.