ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / tr / trousers / allow-non-tss-config-file-owner.patch
blob391eb1ad589dd02008713c11322661f71d6a9ac6
1 diff -ur trousers-0.3.11.2.orig/src/tcsd/tcsd_conf.c trousers-0.3.11.2/src/tcsd/tcsd_conf.c
2 --- trousers-0.3.11.2.orig/src/tcsd/tcsd_conf.c 2013-07-12 18:27:37.000000000 +0200
3 +++ trousers-0.3.11.2/src/tcsd/tcsd_conf.c 2013-08-21 14:29:42.917231648 +0200
4 @@ -763,6 +763,7 @@
5 return TCSERR(TSS_E_INTERNAL_ERROR);
8 +#ifndef ALLOW_NON_TSS_CONFIG_FILE
9 /* make sure user/group TSS owns the conf file */
10 if (stat_buf.st_uid != 0 || grp->gr_gid != stat_buf.st_gid) {
11 LogError("TCSD config file (%s) must be user/group %s/%s", tcsd_config_file,
12 @@ -775,6 +776,7 @@
13 LogError("TCSD config file (%s) must be mode 0640", tcsd_config_file);
14 return TCSERR(TSS_E_INTERNAL_ERROR);
16 +#endif
17 #endif /* SOLARIS */
19 if ((f = fopen(tcsd_config_file, "r")) == NULL) {