/usr/include/dovecot/safe-mkdir.h is in dovecot-dev 1:2.2.9-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #ifndef SAFE_MKDIR_H
#define SAFE_MKDIR_H
/* Either create a directory or make sure that it already exists with given
permissions. If anything fails, the i_fatal() is called. Returns 1 if
directory was created, 2 if it already existed with correct permissions,
0 if we changed permissions. */
int safe_mkdir(const char *dir, mode_t mode, uid_t uid, gid_t gid);
#endif
|