summaryrefslogtreecommitdiff
path: root/doc/posix-functions/lchown.texi
blob: 0efc87d5d091cfd35da3625aa10e10fd19538a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@node lchown
@section @code{lchown}
@findex lchown

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/lchown.html}

Gnulib module: lchown

Portability problems fixed by Gnulib:
@itemize
@item
Some platforms fail to detect trailing slash on non-directories, as in
@code{lchown("link-to-file/",uid,gid)}:
FreeBSD 7.2, Solaris 9.
@item
Some platforms fail to update the change time when at least one
argument was not -1, but no ownership changes resulted.  However,
without @code{lchmod}, the replacement only fixes this for non-symlinks:
OpenBSD 4.0.
@item
This function is missing on some platforms; however, the replacement
fails on symlinks if @code{chown} is supported, and fails altogether
with @code{ENOSYS} otherwise:
Minix 3.1.8, mingw, MSVC 14.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@end itemize