]> andersk Git - moira.git/blobdiff - update/xfer_002.c
new queries to support hosttable in moira
[moira.git] / update / xfer_002.c
index 3b00c9243815a213485fa7e325542ed706c072ce..411e4b4d907ae45ad72bb836d00723914fc6a277 100644 (file)
@@ -61,7 +61,7 @@ xfer_002(str)
     if (!*str) {
     failure:
        reject_call(MR_ARGS);
-       return;
+       return(0);
     }
     file_size = atoi(str);
     while (isdigit(*str))
@@ -78,14 +78,14 @@ xfer_002(str)
     pathname = str;
     if (!have_authorization) {
        reject_call(MR_PERM);
-       return;
+       return(0);
     }
     if (done)                  /* re-initialize data */
        initialize();
     code = send_ok();
     if (code)
        lose("sending ok for file xfer (2)");
-    code = get_file(pathname, file_size, checksum);
+    code = get_file(pathname, file_size, checksum, 0700, 0);
     if (!code) {
        char buf[BUFSIZ];
        have_file = 1;
@@ -93,5 +93,5 @@ xfer_002(str)
        strcat(buf, pathname);
        mr_log_info(buf);
     }
-    return;
+    return(0);
 }
This page took 0.034278 seconds and 4 git commands to generate.