mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
util: add mode, uid, gid parameters to UTI_CreateDirAndParents()
This commit is contained in:
7
util.h
7
util.h
@@ -130,7 +130,10 @@ extern int UTI_DecodePasswordFromText(char *key);
|
||||
|
||||
extern int UTI_SetQuitSignalsHandler(void (*handler)(int));
|
||||
|
||||
/* Create a directory and any parent directories that don't exist */
|
||||
extern int UTI_CreateDirAndParents(const char *path);
|
||||
/* Create a directory with a specified mode (umasked) and set its uid/gid
|
||||
(if not 0). Create also any parent directories that don't exist with mode
|
||||
755 and default uid/gid. Returns 1 if created or already exists (even with
|
||||
different mode/uid/gid), 0 otherwise. */
|
||||
extern int UTI_CreateDirAndParents(const char *path, mode_t mode, uid_t uid, gid_t gid);
|
||||
|
||||
#endif /* GOT_UTIL_H */
|
||||
|
||||
Reference in New Issue
Block a user