_POSIX_NO_TRUNC and _POIX_CHOWN_RESTRICTED with ISC 2.2

Saul Lubkin lubkin at cs.rochester.edu
Mon May 20 13:53:17 AEST 1991


I've been compiling some programs under ISC 2.2, with the "-Xp" (POSIX)
option -- after patching the kernel with Uwe Doering's binary patch, to
prevent kernel panics due to the namei bug.

All has worked well -- I have a decent job-controlled bash, for example.

However, by default, ISC 2.2 defines _POSIX_NO_TRUNC as "1".  This means,
that, by default, an application compiled with "-Xp", when creating files,
and specifying a name length greater than 14,
the file is not created (rather than creating a file, with the name
truncated to 14 chars.)

How does one change this default, to the usual (allowing truncation of
filenames?)

A related problem:  ISC 2.2 defines _POSIX_CHOWN_RESTRICTED as "1".  This
means that, by default, an application compiled with "-Xp" will not allow
the "chown" system call, to change the owner of a file, unless the executing
process has the effective user id of "root".  How can one change this
default?

			Yours sincerely,

			Saul Lubkin



More information about the Comp.unix.sysv386 mailing list