Hi!
I guess that this test should be just removed since umask() cannot fail
at all.
To cite the manual page:
...
RETURN VALUE
This system call always succeeds and the previous value of the
mask is returned.
...
--
Cyril Hrubis
chrubis@suse.cz