summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.h b/misc.h
index 31b207a8d..aaf966e65 100644
--- a/misc.h
+++ b/misc.h
@@ -168,6 +168,8 @@ int safe_path_fd(int, const char *, struct passwd *,
168char *read_passphrase(const char *, int); 168char *read_passphrase(const char *, int);
169int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2))); 169int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2)));
170 170
171int secure_permissions(struct stat *st, uid_t uid);
172
171#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) 173#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
172#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b)) 174#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
173#define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y)) 175#define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y))