SHA256
3
0
forked from pool/timezone
timezone/tzcode-zic.diff
Marcus Meissner 6620a7ba51 Accepting request 307993 from home:leonardocf:branches:Base:System
- Fix check for empty components in absolute path
- Fix post-install script to overwrite the temporary file when
  attempting to create /etc/localtime as a hard link [bsc#928841]
- Update to 2015d [bsc#928584, bsc#928246]

OBS-URL: https://build.opensuse.org/request/show/307993
OBS-URL: https://build.opensuse.org/package/show/Base:System/timezone?expand=0&rev=160
2015-05-19 15:52:15 +00:00

16 lines
453 B
Diff

Index: timezone-2015d/zic.c
===================================================================
--- timezone-2015d.orig/zic.c
+++ timezone-2015d/zic.c
@@ -777,8 +777,10 @@ dolink(const char *const fromfield, cons
memcpy(p, "../", 3);
strcpy(p, t);
result = symlink(symlinkcontents, toname);
+#if 0
if (result == 0)
warning(_("hard link failed, symbolic link used"));
+#endif
free(symlinkcontents);
}
if (result != 0) {