[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCHES] glibc 2.1, Linux, and chown

On Sat, Dec 12, 1998 at 07:44:21PM -0800, Joel Klecker wrote:
> Unless 2.0 alpha kernels have both chown and lchown and both syscalls 
> behave in the expected manner in those kernels, there is a problem.
> The real issue is the case of a glibc compiled with 2.1 kernel 
> headers working with 2.0 kernels.

lchown returns ENOSYS on a 2.0 kernel.  However, there is no
problem with glibc compilation because the numbers didn't change.

Emulation on alpha is also much more painful than the method you
present because the numbers didn't change.  It is just not worth
it, IMO.

Debian should be using 

	ret = lchown(foo, bar);
	if (ret < 0 && errno == ENOSYS)
		ret = chown(foo, bar);

That will work everywhere.


Reply to: