]> TLD Linux GIT Repositories - packages/lxdm.git/blob - greeter-skip-services.patch
f0488e97a533caf1ea12e501042f228fa053cee8
[packages/lxdm.git] / greeter-skip-services.patch
1 --- lxdm-0.3.0/src/lxdm.c~      2010-09-24 18:43:49.000000000 +0300
2 +++ lxdm-0.3.0/src/lxdm.c       2011-07-10 22:35:30.209784033 +0300
3 @@ -1560,6 +1560,11 @@
4         {
5                 if(strstr(pw->pw_shell, "nologin"))
6                         continue;
7 +
8 +               // TLD Linux: skip users with homedir = /home/services
9 +               if(!strncmp(pw->pw_dir,"/home/services/",15))
10 +                       continue;
11 +
12                 if(strncmp(pw->pw_dir,"/home/",6))
13                 {
14                         if(!strv_find(white,pw->pw_name))