]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fs_cli: fix default location of CLI history
authorTravis Cross <tc@traviscross.com>
Thu, 22 Sep 2011 05:03:22 +0000 (05:03 +0000)
committerTravis Cross <tc@traviscross.com>
Fri, 23 Sep 2011 01:25:42 +0000 (01:25 +0000)
Modern linux systems don't write volatile information to /etc.

libs/esl/fs_cli.c

index 62745e03a3c3490398a5a1f6601e18ce45112546..d98edd267eff87162b9d2760b6f9fe62d81521ce 100644 (file)
@@ -943,7 +943,7 @@ int main(int argc, char *argv[])
        char cmd_str[1024] = "";
        cli_profile_t *profile = NULL;
 #ifndef WIN32
-       char hfile[512] = "/etc/fs_cli_history";
+       char hfile[512] = "/tmp/fs_cli_history";
        char cfile[512] = "/etc/fs_cli.conf";
        char dft_cfile[512] = "/etc/fs_cli.conf";
 #else