diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-17 20:49:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-17 20:49:23 +0000 |
commit | 38c097cae8e1da0a0b90ac81102795b2198646ca (patch) | |
tree | 8900d884c166a595f1c99779962e8674d711c6f0 /timezone/zic.c | |
parent | d198009a6e17e728fcfe414e19a2157e0dcf9b93 (diff) | |
download | glibc-38c097cae8e1da0a0b90ac81102795b2198646ca.tar glibc-38c097cae8e1da0a0b90ac81102795b2198646ca.tar.gz glibc-38c097cae8e1da0a0b90ac81102795b2198646ca.tar.bz2 glibc-38c097cae8e1da0a0b90ac81102795b2198646ca.zip |
Update.
* timezone/private.h: Update from tzcode1999e.
* timezone/zic.c: Likewise.
* timezone/africa: Update from tzdata1999e.
* timezone/antarctica: Likewise.
* timezone/asia: Likewise.
* timezone/australasia: Likewise.
* timezone/europe: Likewise.
* timezone/leapseconds: Likewise.
* timezone/northamerica: Likewise.
* timezone/southamerica: Likewise.
Diffstat (limited to 'timezone/zic.c')
-rw-r--r-- | timezone/zic.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/timezone/zic.c b/timezone/zic.c index de706e8316..ddf155f279 100644 --- a/timezone/zic.c +++ b/timezone/zic.c @@ -1,6 +1,6 @@ #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)zic.c 7.99"; +static char elsieid[] = "@(#)zic.c 7.100"; #endif /* !defined NOID */ #endif /* !defined lint */ @@ -617,7 +617,7 @@ const char * const tofile; result = link(fromname, toname); #if (HAVE_SYMLINK - 0) if (result != 0) { - char *s = (char *) tofile; + const char *s = tofile; register char *symlinkcontents = NULL; while ((s = strchr(s+1, '/')) != NULL) symlinkcontents = ecatalloc(symlinkcontents, "../"); @@ -1918,10 +1918,12 @@ const char * const type; buf = erealloc(buf, (int) (132 + strlen(yitcommand) + strlen(type))); (void) sprintf(buf, "%s %d %s", yitcommand, year, type); result = system(buf); - if (result == 0) - return TRUE; - if (result == (1 << 8)) - return FALSE; + if (WIFEXITED(result)) switch (WEXITSTATUS(result)) { + case 0: + return TRUE; + case 1: + return FALSE; + } error(_("Wild result from command execution")); (void) fprintf(stderr, _("%s: command was '%s', result was %d\n"), progname, buf, result); |