plugins: rtc: Move TZ set/unset to rtc plugin from Finit main

This patch makes the RTC plugin a bit more stand-alone, it is now also
back in the hands of the user to set a default timezone.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2020-05-03 11:04:48 +02:00
1 parent b364492a8c
commit 1eca65fcda
2 files changed
+31 -4

No files matched your search

+1 -4
View File
@@ -321,14 +321,11 @@ int main(int argc, char *argv[])
ctx = &loop;
/*
* Set PATH, SHELL, PWD, TZ and umask early to something sane
* Set PATH, SHELL, PWD, and umask early to something sane
*/
setenv("PATH", _PATH_STDPATH, 1);
setenv("SHELL", _PATH_BSHELL, 1);
setenv("TZ", "UTC0", 1);
tzset();
chdir("/");
umask(0);