diff --git a/debian/changelog b/debian/changelog index 464d1e1c..b7ce4aaa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,7 @@ shadow (1:4.1.2-1) experimental; urgency=low + debian/patches/200_Czech_binary_translation + debian/patches/494_passwd_lock-no_account_lock + debian/patches/008_su_get_PAM_username + + debian/patches/302_vim_selinux_support * debian/patches/506_relaxed_usernames: Use an extra paragraph for the note on username with a '/'. * debian/patches/504_undef_USE_PAM.dpatch: diff --git a/debian/patches/302_vim_selinux_support b/debian/patches/302_vim_selinux_support index 84a7f60d..2dcb2322 100644 --- a/debian/patches/302_vim_selinux_support +++ b/debian/patches/302_vim_selinux_support @@ -20,9 +20,9 @@ Index: shadow-4.1.1/src/vipw.c "You have modified %s.\n"\ "You may need to modify %s for consistency.\n"\ @@ -167,6 +171,22 @@ - - if (access (file, F_OK)) + if (access (file, F_OK) != 0) { vipwexit (file, 1, 1); + } +#ifdef WITH_SELINUX + /* if SE Linux is enabled then set the context of all new files + to be the context of the file we are editing */ @@ -39,9 +39,9 @@ Index: shadow-4.1.1/src/vipw.c + } + } +#endif - if (!file_lock ()) + if (file_lock () == 0) { vipwexit (_("Couldn't lock file"), errno, 5); - filelocked = 1; + } @@ -236,6 +256,14 @@ progname, file, strerror (errno), fileedit); vipwexit (0, 0, 1);