Index: usr.sbin/tzsetup/tzsetup.c =================================================================== --- usr.sbin/tzsetup/tzsetup.c +++ usr.sbin/tzsetup/tzsetup.c @@ -748,15 +748,11 @@ char prompt[SILLY_BUFFER_SIZE]; struct stat sb; ssize_t len; - int fd1, fd2, copymode; + int fd1, fd2; + bool copymode = false; - if (lstat(path_localtime, &sb) < 0) { - /* Nothing there yet... */ - copymode = 1; - } else if (S_ISLNK(sb.st_mode)) - copymode = 0; - else - copymode = 1; + if (lstat(path_localtime, &sb) == 0 && !S_ISLNK(sb.st_mode)) + copymode = true; #ifdef VERBOSE if (copymode)