]> code.citadel.org Git - citadel.git/blobdiff - citadel/routines2.c
Create some directories to hold the source files for the utility
[citadel.git] / citadel / routines2.c
index ab8ec1c21a0a88e95981760e7f574126edb340ba..3fbff5f3d136d85b242d81f9fef7c5eec820564f 100644 (file)
@@ -316,6 +316,7 @@ void upload(CtdlIPC *ipc, int c)
        int a, b;
        FILE *fp, *lsfp;
        int r;
+       int rv;
 
        if ((room_flags & QR_UPLOAD) == 0) {
                scr_printf("*** You cannot upload to this room.\n");
@@ -342,7 +343,7 @@ void upload(CtdlIPC *ipc, int c)
        /* now do the transfer ... in a separate process */
        xfer_pid = fork();
        if (xfer_pid == 0) {
-               chdir(tempdir);
+               rv = chdir(tempdir);
                switch (c) {
                case 0:
                        stty_ctdl(0);