view src/lib/eacces-error.h @ 9191:b340ecb24469 HEAD

Fix VPATH build of RQUOTA support. Some rpcgen derive #include "..." paths from the infile argument. This will be off for VPATH builds, as the generated rquota_xdr.c code will look in $(srcdir), but we'll generate the rquota.h file in $(builddir). Play safe and copy rquota.x to $(builddir) first. This fixes the build on openSUSE 11.1.
author Matthias Andree <matthias.andree@gmx.de>
date Tue, 07 Jul 2009 21:01:36 +0200
parents 2bbf175bb6d3
children
line wrap: on
line source

#ifndef EACCES_ERROR_H
#define EACCES_ERROR_H

/* Return a user-friendly error message for EACCES failures. */
const char *eacces_error_get(const char *func, const char *path);
const char *eacces_error_get_creating(const char *func, const char *path);
/* Return a user-friendly error message for fchown() or chown() EPERM
   failures when only the group is being changed. gid_origin specifies why
   exactly this group is being used. */
const char *eperm_error_get_chgrp(const char *func, const char *path,
				  gid_t gid, const char *gid_origin);

#endif