Adds a trustee to the trustee list for the specified file or directory.
#include <nks/netware.h> int nxAddTrustee ( NXPathCtx_t pathCtx, const char *pathname, uint32_t objectID, uint32_t rights );
(IN) Specifies the file system path context. Along with the pathname parameter, it specifies the file or directory.
(IN) Points to a null-terminated Unicode or ASCII string that specifies the name of the file or directory (relative to pathCtx).
(IN) Specifies the ID of the user to add as a trustee
(IN) Specifies a bit mask of the rights to grant to the trustee. For a list of possible values, see Effective Rights Flags
in Volume 1. If the user is already a trustee in the specified directory or file, the existing rights mask for the trustee is replaced by the value in the rights parameter.
If successful, returns 0. Otherwise returns a nonzero error code.
You can use this function on traditional, NSS, and remote volumes, but it returns NX_ENOTSUP for the DOS partition.
This function specifies the directory or file by passing a pathname. The pathName parameter can identify an absolute or relative directory or file path. An absolute path includes a volume. For information on how pathCtx and pathname work together, see Path Contexts and File System Paths
in Volume 1.