Skip to content

Commit

Permalink
* sysdeps/unix/sysv/linux/linkat.c (linkat): Allow flags to be set
Browse files Browse the repository at this point in the history
	when syscall is used.
	* io/fcntl.h (AT_SYMLINK_FOLLOW): Define.
  • Loading branch information
Ulrich Drepper committed Feb 27, 2006
1 parent c804fb5 commit f39008b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2006-02-27 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/linkat.c (linkat): Allow flags to be set
when syscall is used.
* io/fcntl.h (AT_SYMLINK_FOLLOW): Define.

2006-02-26 Roland McGrath <roland@redhat.com>

* sysdeps/unix/common/Makefile: File removed.
Expand Down
14 changes: 7 additions & 7 deletions sysdeps/unix/sysv/linux/linkat.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ linkat (fromfd, from, tofd, to, flags)
{
int result;

// XXX Will be removed once the kernel support is in place.
if (flags != 0)
{
__set_errno (EINVAL);
return -1;
}

#ifdef __NR_linkat
# ifndef __ASSUME_ATFCTS
if (__have_atfcts >= 0)
Expand All @@ -60,6 +53,13 @@ linkat (fromfd, from, tofd, to, flags)
#endif

#ifndef __ASSUME_ATFCTS
/* Without kernel support we cannot handle AT_SYMLINK_FOLLOW. */
if (flags != 0)
{
__set_errno (EINVAL);
return -1;
}

static const char procfd[] = "/proc/self/fd/%d/%s";
char *buffrom = NULL;

Expand Down

0 comments on commit f39008b

Please sign in to comment.