Skip to content

Commit 69b6a54

Browse files
committed
tlshd: Relocate TLSHD_ALLPERMS
Clean up: Move it next to the other related macro definitions. Signed-off-by: Chuck Lever <[email protected]>
1 parent 96340c1 commit 69b6a54

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tlshd/config.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@
4646

4747
static GKeyFile *tlshd_configuration;
4848

49-
/**
50-
* ALLPERMS exists in glibc, but not on musl, so we
51-
* manually define TLSHD_ACCESSPERMS instead of using ALLPERMS.
52-
*/
53-
#define TLSHD_ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
54-
5549
/**
5650
* tlshd_config_init - Read tlshd's config file
5751
* @pathname: Pathname to config file
@@ -120,6 +114,12 @@ void tlshd_config_shutdown(void)
120114
g_key_file_free(tlshd_configuration);
121115
}
122116

117+
/**
118+
* ALLPERMS exists in glibc, but not on musl, so we manually
119+
* define TLSHD_ACCESSPERMS instead of using ALLPERMS.
120+
*/
121+
#define TLSHD_ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
122+
123123
/*
124124
* Expected file attributes
125125
*/

0 commit comments

Comments
 (0)