diff options
Diffstat (limited to 'stdlib/canonicalize.c')
-rw-r--r-- | stdlib/canonicalize.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/canonicalize.c b/stdlib/canonicalize.c index 356c619..554e1b2 100644 --- a/stdlib/canonicalize.c +++ b/stdlib/canonicalize.c @@ -93,7 +93,7 @@ canonicalize (const char *name, char *resolved) { if (resolved) { - errno = ENAMETOOLONG; + __set_errno (ENAMETOOLONG); goto error; } new_size = rpath_limit - rpath; @@ -120,7 +120,7 @@ canonicalize (const char *name, char *resolved) if (++num_links > MAXSYMLINKS) { - errno = ELOOP; + __set_errno (ELOOP); goto error; } @@ -134,7 +134,7 @@ canonicalize (const char *name, char *resolved) if ((long int) (n + strlen (end)) >= path_max) { - errno = ENAMETOOLONG; + __set_errno (ENAMETOOLONG); goto error; } |