projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Began setting up a second server socket that will be used exclusively for admin utilities
[citadel.git]
/
citadel
/
file_ops.c
diff --git
a/citadel/file_ops.c
b/citadel/file_ops.c
index 69e49c45e9625c9a543128ca45fbe87f8d862fd6..207a4b19010bb254845a280e3632d22fe7897842 100644
(file)
--- a/
citadel/file_ops.c
+++ b/
citadel/file_ops.c
@@
-156,7
+156,6
@@
void cmd_movf(char *cmdbuf)
char buf[PATH_MAX];
int a;
struct ctdlroom qrbuf;
char buf[PATH_MAX];
int a;
struct ctdlroom qrbuf;
- int rv = 0;
extract_token(filename, cmdbuf, 0, '|', sizeof filename);
extract_token(newroom, cmdbuf, 1, '|', sizeof newroom);
extract_token(filename, cmdbuf, 0, '|', sizeof filename);
extract_token(newroom, cmdbuf, 1, '|', sizeof newroom);
@@
-210,7
+209,7
@@
void cmd_movf(char *cmdbuf)
snprintf(buf, sizeof buf,
"cat ./files/%s/filedir |grep \"%s\" >>./files/%s/filedir",
CC->room.QRdirname, filename, qrbuf.QRdirname);
snprintf(buf, sizeof buf,
"cat ./files/%s/filedir |grep \"%s\" >>./files/%s/filedir",
CC->room.QRdirname, filename, qrbuf.QRdirname);
-
rv =
system(buf);
+ system(buf);
cprintf("%d File '%s' has been moved.\n", CIT_OK, filename);
}
cprintf("%d File '%s' has been moved.\n", CIT_OK, filename);
}