summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryoonki.park <yoonki.park@samsung.com>2013-05-02 13:45:32 +0900
committeryoonki.park <yoonki.park@samsung.com>2013-05-02 13:45:32 +0900
commitd8660e31548ba8b34f2fb480f14357f3cf5d886c (patch)
tree5830100519bda667aa41999be86e824ed92cf7f2
parent6be81aab551d3fc93a334faaff387886d735668b (diff)
downloadsdbd-d8660e31548ba8b34f2fb480f14357f3cf5d886c.tar.gz
sdbd-d8660e31548ba8b34f2fb480f14357f3cf5d886c.tar.bz2
sdbd-d8660e31548ba8b34f2fb480f14357f3cf5d886c.zip
set TERM env
Change-Id: I4c5e656254b19d526e6e06dc23cbf7249c60fbb5 Signed-off-by: yoonki.park <yoonki.park@samsung.com>
-rw-r--r--packaging/sdbd.spec2
-rw-r--r--src/sdb.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/packaging/sdbd.spec b/packaging/sdbd.spec
index 94ee1bc..4235639 100644
--- a/packaging/sdbd.spec
+++ b/packaging/sdbd.spec
@@ -1,7 +1,7 @@
Name: sdbd
Summary: SDB daemon
Version: 2.1.2
-Release: 0
+Release: 1
Group: TO_BE/FILLED_IN
License: TO BE FILLED IN
Source0: %{name}-%{version}.tar.gz
diff --git a/src/sdb.c b/src/sdb.c
index 701665e..5634d55 100644
--- a/src/sdb.c
+++ b/src/sdb.c
@@ -1017,6 +1017,11 @@ int set_developer_privileges() {
static void init_sdk_requirements() {
struct stat st;
+
+ if (!getenv("TERM")) {
+ putenv("TERM=linux");
+ }
+
if (stat(ONDEMAND_ROOT_PATH, &st) == -1) {
return;
}