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");
/* 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);
if (a == 1)
scr_printf("User #%s - %s ", buf, cmd);
if (a == 2)
- scr_printf("PW: %s\n", buf);
+ scr_printf("PW: %s\n", (IsEmptyStr(buf) ? "<NOT SET>" : "<SET>") );
if (a == 3)
scr_printf("%s\n", buf);
if (a == 4)
err_printf("%s\n", buf);
}
-/*
- * <.A>ide <F>ile <S>end command
- */
-void netsendfile(CtdlIPC *ipc)
-{
- char filename[32], destsys[20], buf[256];
-
- newprompt("Filename: ", filename, 31);
- if (IsEmptyStr(filename))
- return;
- newprompt("System to send to: ", destsys, 19);
- CtdlIPCNetSendFile(ipc, filename, destsys, buf);
- err_printf("%s\n", buf);
- return;
-}
/*
* <.A>ide <F>ile <M>ove command