opensmtpd: Fix attempt to set unsupported permissions during install

This commit is contained in:
Will Dietz 2017-07-13 11:50:29 -05:00 committed by Franz Pletz
parent 627260ddbf
commit 04aa269fb1

View File

@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
substituteInPlace smtpd/smtpctl.c --replace \
'if (geteuid())' \
'if (geteuid() != 0 && !(argc > 1 && !strcmp(argv[1], "encrypt")))'
substituteInPlace mk/smtpctl/Makefile.in --replace "chmod 2555" "chmod 0555"
'';
configureFlags = [