1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

xz: Improve a comment.

This commit is contained in:
Lasse Collin 2010-09-06 10:16:24 +03:00
parent bcb1b89834
commit 58f5513182

View file

@ -370,15 +370,16 @@ io_open_src_real(file_pair *pair)
} }
#ifdef O_NOFOLLOW #ifdef O_NOFOLLOW
// Give an understandable error message in if reason // Give an understandable error message if the reason
// for failing was that the file was a symbolic link. // for failing was that the file was a symbolic link.
// //
// Note that at least Linux, OpenBSD, Solaris, and Darwin // Note that at least Linux, OpenBSD, Solaris, and Darwin
// use ELOOP to indicate if O_NOFOLLOW was the reason // use ELOOP to indicate that O_NOFOLLOW was the reason
// that open() failed. Because there may be // that open() failed. Because there may be
// directories in the pathname, ELOOP may occur also // directories in the pathname, ELOOP may occur also
// because of a symlink loop in the directory part. // because of a symlink loop in the directory part.
// So ELOOP doesn't tell us what actually went wrong. // So ELOOP doesn't tell us what actually went wrong,
// and this stupidity went into POSIX-1.2008 too.
// //
// FreeBSD associates EMLINK with O_NOFOLLOW and // FreeBSD associates EMLINK with O_NOFOLLOW and
// Tru64 uses ENOTSUP. We use these directly here // Tru64 uses ENOTSUP. We use these directly here