Project

General

Profile

Actions

Bug #13634

closed

fstat(2) does not use flag

Added by Marcel Telka 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
manpage - manual pages
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

The stat(2) man page contains this:

       st_mode
                     The mode of the file as described for the mknod()
                     function. In addition to the modes described on the
                     mknod(2) manual page, the mode of a file can also be
                     S_IFSOCK if the file is a socket, S_IFDOOR if the file is
                     a door, S_IFPORT if the file is an event port, or S_IFLNK
                     if the file is a symbolic link. S_IFLNK can be returned
                     either by lstat() or by fstat() when the
                     AT_SYMLINK_NOFOLLOW flag is set.

Apparently, fstat() should be changed to fstatat() there.


Related issues

Related to illumos gate - Bug #13594: Valid flag for fchownat(2) is AT_SYMLINK_NOFOLLOW, not SYMLNKClosedMarcel Telka

Actions
Actions

Also available in: Atom PDF