From d7543e8b4a5c65b77dd208bf42b8e1378ea061d1 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 5 Jul 2012 23:36:28 -0600 Subject: [PATCH] - Use posix.link rather than posix.symlink in scriptlet to update /etc/localtime (#837344). --- glibc.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/glibc.spec b/glibc.spec index 530316b..1350e63 100644 --- a/glibc.spec +++ b/glibc.spec @@ -28,7 +28,7 @@ Summary: The GNU libc libraries Name: glibc Version: %{glibcversion} -Release: 1%{?dist} +Release: 2%{?dist} # GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries. # Things that are linked directly into dynamically linked programs # and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional @@ -1090,7 +1090,7 @@ for l in fd:lines() do end fd:close() if not zonename then return end -posix.symlink (zonename, "/etc/localtime.tzupdate") +posix.link (zonename, "/etc/localtime.tzupdate", true) posix.chmod("/etc/localtime.tzupdate", 0644) if not os.rename("/etc/localtime.tzupdate", "/etc/localtime") then os.remove("/etc/localtime.tzupdate") @@ -1135,7 +1135,7 @@ data = fd:read("*a") fd:close() if not data then return end update("/var/spool/postfix/etc/localtime", data) -posix.symlink (zonename, "/etc/localtime.tzupdate") +posix.link (zonename, "/etc/localtime.tzupdate", true) posix.chmod("/etc/localtime.tzupdate", 0644) if not os.rename("/etc/localtime.tzupdate", "/etc/localtime") then os.remove("/etc/localtime.tzupdate") @@ -1304,6 +1304,10 @@ rm -f *.filelist* %endif %changelog +* Thu Jul 5 2012 Jeff Law - 2.16-2 + - Use posix.link rather than posix.symlink in scriptlet to + update /etc/localtime (#837344). + * Mon Jul 2 2012 Jeff Law - 2.16-1 - Resync with upstream glibc-2.16 release.