mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
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:
1 parent
b364492a8c
commit
1eca65fcda
2 files changed
+31
-4
No files matched your search
+1
-4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user