view src/lib/eacces-error.h @ 22656:1789bf2a1e01

director: Make sure HOST-RESET-USERS isn't used with max_moving_users=0 The reset command would just hang in that case. doveadm would never have sent this, so this is just an extra sanity check.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sun, 05 Nov 2017 23:51:56 +0200
parents c93ca5e46a8a
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)
	ATTR_NULL(4);

#endif