Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145380071
D18501.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D18501.id.diff
View Options
Index: head/lib/libc/sys/getfh.2
===================================================================
--- head/lib/libc/sys/getfh.2
+++ head/lib/libc/sys/getfh.2
@@ -29,7 +29,7 @@
.\" @(#)getfh.2 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd December 7, 2018
+.Dd December 11, 2018
.Dt GETFH 2
.Os
.Sh NAME
@@ -76,12 +76,12 @@
.Fn lgetfh
except when the
.Fa path
-specifies a relative or NULL path, or the
+specifies a relative path, or the
.Dv AT_BENEATH
flag is provided.
For
.Fn getfhat
-and relative or NULL
+and relative
.Fa path ,
the status is retrieved from a file relative to
the directory associated with the file descriptor
Index: head/sys/kern/vfs_syscalls.c
===================================================================
--- head/sys/kern/vfs_syscalls.c
+++ head/sys/kern/vfs_syscalls.c
@@ -4196,8 +4196,8 @@
if ((uap->flags & ~(AT_SYMLINK_NOFOLLOW | AT_BENEATH)) != 0)
return (EINVAL);
- return (kern_getfhat(td, uap->flags, uap->fd, uap->path ? uap->path : ".",
- UIO_USERSPACE, uap->fhp));
+ return (kern_getfhat(td, uap->flags, uap->fd, uap->path, UIO_USERSPACE,
+ uap->fhp));
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 20, 1:26 AM (9 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28893525
Default Alt Text
D18501.id.diff (1 KB)
Attached To
Mode
D18501: fix getfhat bug introduced by D18359
Attached
Detach File
Event Timeline
Log In to Comment