Re: [PATCH] sha1_file: make sure correct error is propagated
Le vendredi 14 novembre 2008, Sam Vilain a écrit :
Show 10 quoted lines
> From: Sam Vilain <samv@maia.lan>
>
> In the case that a object directory exists, but is not writable, the
> code path that tries to create it is followed and the returned errno
> and path that of the directory tried to be created. The resultant
> error message is confusing.
>
> So, if the mkstemp() fails with EPERM, don't try to create the
> directory - return straight away.
>
Are you sure you didn't mean EACCESS?
--
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris