Репозитории ALT
S: | 4.14.0-alt1 |
5.1: | 4.0.4.1-alt9 |
4.1: | 4.0.4.1-alt9 |
4.0: | 4.0.4.1-alt8 |
3.0: | 4.0.4.1-alt5 |
Группа :: Система/Основа
Пакет: shadow
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: shadow-4.0.4.1-alt-useradd-skel.patch
Скачать
Скачать
--- shadow-4.0.4.1/src/useradd.c.orig 2004-11-10 19:30:27 +0300
+++ shadow-4.0.4.1/src/useradd.c 2004-11-10 19:30:27 +0300
@@ -1956,7 +1956,8 @@ int main (int argc, char **argv)
if (mflg) {
create_home ();
create_mailbox ();
- copy_tree (def_template, user_home, user_id, user_gid, 1);
+ copy_tree ((access(def_template,R_OK|X_OK)?SKEL_DIR:def_template),
+ user_home, user_id, user_gid, 1);
}
nscd_flush_cache ("passwd");