d1fa6abe16bec47485f63f948f5c269e7faef0e8
[gnulib.git] / doc / posix-functions / lchown.texi
1 @node lchown
2 @section @code{lchown}
3 @findex lchown
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/lchown.html}
6
7 Gnulib module: lchown
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 Some platforms fail to detect trailing slash on non-directories, as in
13 @code{lchown("link-to-file/",uid,gid)}:
14 FreeBSD 7.2, Solaris 9.
15 @item
16 Some platforms fail to update the change time when at least one
17 argument was not -1, but no ownership changes resulted.  However,
18 without @code{lchmod}, the replacement only fixes this for non-symlinks:
19 OpenBSD 4.0.
20 @item
21 This function is missing on some platforms; however, the replacement
22 fails on symlinks if @code{chown} is supported, and fails altogether
23 with @code{ENOSYS} otherwise:
24 MacOS X 10.3, mingw, BeOS.
25 @end itemize
26
27 Portability problems not fixed by Gnulib:
28 @itemize
29 @end itemize