summaryrefslogtreecommitdiff
path: root/src/timedate
diff options
context:
space:
mode:
Diffstat (limited to 'src/timedate')
-rw-r--r--src/timedate/timedated.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index 784dadc631..fdb4335464 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -199,19 +199,10 @@ static int write_data_timezone(void) {
int r = 0;
_cleanup_free_ char *p = NULL;
-#ifdef TARGET_DEBIAN
- struct stat st;
-#endif
-
if (!tz.zone) {
if (unlink("/etc/localtime") < 0 && errno != ENOENT)
r = -errno;
-#ifdef TARGET_DEBIAN
- if (unlink("/etc/timezone") < 0 && errno != ENOENT)
- r = -errno;
-#endif
-
return r;
}
@@ -223,14 +214,6 @@ static int write_data_timezone(void) {
if (r < 0)
return r;
-#ifdef TARGET_DEBIAN
- if (stat("/etc/timezone", &st) == 0 && S_ISREG(st.st_mode)) {
- r = write_one_line_file_atomic("/etc/timezone", tz.zone);
- if (r < 0)
- return r;
- }
-#endif
-
return 0;
}