mirror of git://sourceware.org/git/glibc.git
Fix warning in Linux openat implementation when __ASSUME_ATFCTS is set.
* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall 'err' in the ifdef scope in which it is actually used.
This commit is contained in:
parent
09a3453f63
commit
5f0bdb1894
|
|
@ -1,5 +1,8 @@
|
||||||
2012-03-13 David S. Miller <davem@davemloft.net>
|
2012-03-13 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
|
||||||
|
'err' in the ifdef scope in which it is actually used.
|
||||||
|
|
||||||
* nss/nss_db/db-init.c: Include string.h
|
* nss/nss_db/db-init.c: Include string.h
|
||||||
|
|
||||||
2012-03-12 David S. Miller <davem@davemloft.net>
|
2012-03-12 David S. Miller <davem@davemloft.net>
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,6 @@ OPENAT_NOT_CANCEL (fd, file, oflag, mode)
|
||||||
oflag |= MORE_OFLAGS;
|
oflag |= MORE_OFLAGS;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
INTERNAL_SYSCALL_DECL (err);
|
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
#ifdef __NR_openat
|
#ifdef __NR_openat
|
||||||
|
|
@ -104,6 +103,7 @@ OPENAT_NOT_CANCEL (fd, file, oflag, mode)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __ASSUME_ATFCTS
|
#ifndef __ASSUME_ATFCTS
|
||||||
|
INTERNAL_SYSCALL_DECL (err);
|
||||||
char *buf = NULL;
|
char *buf = NULL;
|
||||||
|
|
||||||
if (fd != AT_FDCWD && file[0] != '/')
|
if (fd != AT_FDCWD && file[0] != '/')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue