Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!lubkin From: lubkin@cs.rochester.edu (Saul Lubkin) Newsgroups: comp.unix.sysv386 Subject: _POSIX_NO_TRUNC and _POIX_CHOWN_RESTRICTED with ISC 2.2 Message-ID: <1991May20.035317.5134@cs.rochester.edu> Date: 20 May 91 03:53:17 GMT Organization: Computer Science Department University of Rochester Lines: 24 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