原来的代码是使用~bbs/innd/innbbsd访问innbbsd文件
貌似bbs没有规定一定要装到bbs用户的home目录
不知是否可以用BBSHOME宏代替
Patch如下
Index: src/maintain.c
===================================================================
--- src/maintain.c (revision 230)
+++ src/maintain.c (revision 231)
@@ -1724,7 +1724,7 @@
getdata(t_lines - 1, 0, "启动转信吗 (Y/N)? [N]: ", ans, 2, DOECHO, NULL, true);
if (ans[0] == 'Y' || ans[0] == 'y') {
- sprintf(tmp_command, "~bbs/innd/innbbsd");
+ sprintf(tmp_command, BBSHOME "/innd/innbbsd");
system(tmp_command);
}
return 0;
@@ -1736,7 +1736,7 @@
getdata(t_lines - 1, 0, "重读配置吗 (Y/N)? [N]: ", ans, 2, DOECHO, NULL, true);
if (ans[0] == 'Y' || ans[0] == 'y') {
- sprintf(tmp_command, "~bbs/innd/ctlinnbbsd reload");
+ sprintf(tmp_command, BBSHOME "/innd/ctlinnbbsd reload");
system(tmp_command);
}
return 0;
@@ -1748,7 +1748,7 @@
getdata(t_lines - 1, 0, "停止转信吗 (Y/N)? [N]: ", ans, 2, DOECHO, NULL, true);
if (ans[0] == 'Y' || ans[0] == 'y') {
- sprintf(tmp_command, "~bbs/innd/ctlinnbbsd shutdown");
+ sprintf(tmp_command, BBSHOME "innd/ctlinnbbsd shutdown");
system(tmp_command);
}
return 0;
--
FROM 210.25.133.*