summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 4a875adb..f7de644f 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -851,6 +851,13 @@ x_file(void)
strlcpy(buf, entries[sel], sizeof(buf));
v = strchr(buf, ' '); *v++ = 0;
i = vedit(buf, NA, NULL);
+ // log file change
+ if (i != -1)
+ {
+ log_filef("log/etc_edit.log", LOG_CREAT,
+ "%s %s %s # %s", Cdate(&now),
+ cuser.userid, buf, v);
+ }
vmsgf("系統檔案[%s]: %s", buf, (i == -1) ?
"未改變" : "更新完畢");
break;