aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-08-08 06:09:28 -0400
committerLibravatar GitHub <noreply@github.com>2016-08-08 06:09:28 -0400
commit1cbb5377933fbc8b7d781a4430c2eef1c1264e76 (patch)
treeab151309108fe851e3b430bb60f155c6d417ae7c
parentMerge pull request #687 from reinerh/master (diff)
parentfix "PATH_MAX undeclared" error on musl systems (diff)
downloadfirejail-1cbb5377933fbc8b7d781a4430c2eef1c1264e76.tar.gz
firejail-1cbb5377933fbc8b7d781a4430c2eef1c1264e76.tar.zst
firejail-1cbb5377933fbc8b7d781a4430c2eef1c1264e76.zip
Merge pull request #691 from manevich/smallfixes-02
Pair of small fixes
-rw-r--r--src/firejail/env.c8
-rw-r--r--src/libtracelog/libtracelog.c1
2 files changed, 3 insertions, 6 deletions
diff --git a/src/firejail/env.c b/src/firejail/env.c
index 1a6236407..a5b3ccfb3 100644
--- a/src/firejail/env.c
+++ b/src/firejail/env.c
@@ -132,12 +132,8 @@ void env_defaults(void) {
132 if (setenv("PROMPT_COMMAND", "export PS1=\"\\[\\e[1;32m\\][\\u@\\h \\W]\\$\\[\\e[0m\\] \"", 1) < 0) 132 if (setenv("PROMPT_COMMAND", "export PS1=\"\\[\\e[1;32m\\][\\u@\\h \\W]\\$\\[\\e[0m\\] \"", 1) < 0)
133 errExit("setenv"); 133 errExit("setenv");
134 134
135 // build the window title and set it 135 // set the window title
136 char *title; 136 printf("\033]0;firejail %s\007\n", cfg.window_title);
137 if (asprintf(&title, "\033]0;firejail %s\007\n", cfg.window_title) == -1)
138 errExit("asprintf");
139 printf("%s", title);
140 free(title);
141} 137}
142 138
143// parse and store the environment setting 139// parse and store the environment setting
diff --git a/src/libtracelog/libtracelog.c b/src/libtracelog/libtracelog.c
index dedba5513..ff884c7d7 100644
--- a/src/libtracelog/libtracelog.c
+++ b/src/libtracelog/libtracelog.c
@@ -31,6 +31,7 @@
31#include <sys/stat.h> 31#include <sys/stat.h>
32#include <syslog.h> 32#include <syslog.h>
33#include <dirent.h> 33#include <dirent.h>
34#include <limits.h>
34 35
35//#define DEBUG 36//#define DEBUG
36 37