Change-Id: I061edb850c73cd69c4e0e2fadc4490a06fae3cd0
Signed-off-by: yoonki.park <yoonki.park@samsung.com>
Name: sdbd
Summary: SDB daemon
Version: 2.2.4
-Release: 1
+Release: 2
Group: TO_BE/FILLED_IN
License: TO BE FILLED IN
Source0: %{name}-%{version}.tar.gz
#include "sdb.h"
#if !SDB_HOST
-//#include <private/android_filesystem_config.h> eric
-#include <linux/capability.h>
#include <linux/prctl.h>
#define SDB_PIDPATH "/tmp/.sdbd.pid"
#else
D("sdbd: unable to change working directory to /\n");
}
}
+ // TODO: use pam later
+ putenv("HOME=/home/developer");
+
return 1;
}
#define ONDEMAND_ROOT_PATH "/home/developer"
static void init_sdk_requirements() {
struct stat st;
+ // set env variable for temporary
+ // TODO: should use pam instead later!!
if (!getenv("TERM")) {
putenv("TERM=linux");
}
+ if (!getenv("HOME")) {
+ putenv("HOME=/root");
+ }
+
if (stat(ONDEMAND_ROOT_PATH, &st) == -1) {
return;
}