Hello.

When you use loginctl list _xxxxx_ in a single user/seat/session system it displays 1 session*s*/user*s*/seat*s*. Shouldn't the code for it be something like the attached patch??

I am not much of a coder so it might be wrong.

Thanks in advance.
136,137c136,141
<         if (on_tty())
<                 printf("\n%u sessions listed.\n", k);
---
>         if (on_tty()) {
> 		if (k==1)
> 			printf("\n%u session listed.\n", k);
> 		else
>                 	printf("\n%u sessions listed.\n", k);
> 	}
199,200c203,208
<         if (on_tty())
<                 printf("\n%u users listed.\n", k);
---
>         if (on_tty()) {
> 		if (k==1)
> 			printf("\n%u user listed.\n", k);
> 		else
>                 	printf("\n%u users listed.\n", k);
> 	}
260,262c268,273
<         if (on_tty())
<                 printf("\n%u seats listed.\n", k);
< 
---
>         if (on_tty()) {
> 		if (k==1)
> 			printf("\n%u seat listed.\n", k);
> 		else
>                 	printf("\n%u seats listed.\n", k);
> 	}
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to