zic on multi-processor systems

Ulrich Drepper drepper at myware.rz.uni-karlsruhe.de
Mon Feb 3 00:35:03 UTC 1997


Ken Pizzini <ken at halcyon.com> writes:

>  		if (!itsdir(name)) {
>  			/*
>  			** It doesn't seem to exist, so we try to create it.
> +			** Double check the return. Someone may be one
> +			** step ahead of us.
>  			*/
>  			if (mkdir(name, 0755) != 0) {
> +				int sverr = errno;
> +				if (!itsdir(name)) {
>  				const char *e = strerror(errno);

You probably mean `sverr' here --------------------------^^^^^

BTW: I would change the if line to

	if (errno == EEXIST && !itsdir(name))

I've sent the patch as I got it and thought about it only later.

Thanks,

-- Uli
---------------.      drepper at cygnus.com  ,-.   Rubensstrasse 5
Ulrich Drepper  \    ,-------------------'   \  76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper at gnu.ai.mit.edu  `------------------------



More information about the tz mailing list