Apply patch to shadow which allows dots (.) in user names.

This commit is contained in:
Rob Vermaas 2012-09-18 23:56:51 +02:00
parent f590586775
commit 265a0563fa
1 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,11 @@ let
then glibcCross then glibcCross
else assert stdenv ? glibc; stdenv.glibc; else assert stdenv ? glibc; stdenv.glibc;
dots_in_usernames = fetchurl {
url = http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/shadow/files/shadow-4.1.3-dots-in-usernames.patch;
sha256 = "1fj3rg6x3jppm5jvi9y7fhd2djbi4nc5pgwisw00xlh4qapgz692";
};
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -19,7 +24,7 @@ stdenv.mkDerivation rec {
buildInputs = stdenv.lib.optional (pam != null && stdenv.isLinux) pam; buildInputs = stdenv.lib.optional (pam != null && stdenv.isLinux) pam;
patches = [ ./keep-path.patch ]; patches = [ ./keep-path.patch dots_in_usernames ];
# Assume System V `setpgrp (void)', which is the default on GNU variants # Assume System V `setpgrp (void)', which is the default on GNU variants
# (`AC_FUNC_SETPGRP' is not cross-compilation capable.) # (`AC_FUNC_SETPGRP' is not cross-compilation capable.)