mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
[BZ #2172]
* sysdeps/unix/sysv/linux/i386/fchownat.c: Diddle code so that "fail" label is always used. [BZ #2172] * bits/syslog-path.h: New file. * misc/Makefile (headers): Add it. * misc/sys/syslog.h: Include it. (_PATH_LOG): Macro removed. From Robert Millan <robertmh@gnu.org>.
This commit is contained in:
@ -168,11 +168,11 @@ fchownat (int fd, const char *file, uid_t owner, gid_t group, int flag)
|
||||
#endif
|
||||
|
||||
if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (result, err), 0))
|
||||
{
|
||||
fail:
|
||||
__atfct_seterrno (INTERNAL_SYSCALL_ERRNO (result, err), fd, buf);
|
||||
result = -1;
|
||||
}
|
||||
goto fail;
|
||||
|
||||
return result;
|
||||
|
||||
fail:
|
||||
__atfct_seterrno (INTERNAL_SYSCALL_ERRNO (result, err), fd, buf);
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user