ssu
ssuconfperm.c
Go to the documentation of this file.
1 
12 #include <sys/stat.h>
13 #include <unistd.h>
14 
15 #include "../constants.h"
16 
17 int main(int argc, char **argv)
18 {
19  struct stat sb;
20 
21  if (!stat(SSU_CONFIGURATION, &sb)){
23  chmod(SSU_CONFIGURATION, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH);
24  }
25 }
SSU_CONFIGURATION
#define SSU_CONFIGURATION
Path to the main ssu configuration file.
Definition: ssucoreconfig_p.h:17
SSU_GROUP_ID
#define SSU_GROUP_ID
The group ID ssu expects to run as. This is usually the GID of the main phone user.
Definition: constants.h:12