Mmm... But can "get_user_name" return something that isn't in /etc/passwd?
Anyway, testing for NULL is a good idea.
El 9/5/22 a las 1:18, Barak A. Pearlmutter escribió:
I don't understand this code in that patch:
+ while (true) {
+
I don't understand this code in that patch:
+ while (true) {
+ unowned Posix.Passwd passwd =
Posix.getpwent();
+ if (passwd.pw_name ==
GLib.Environment.get_user_name()) {
+
I created a MR that should fix this. It is at
https://gitlab.com/rastersoft/terminus/-/merge_requests/6 Can you test it?
--
Nos leemos
RASTER(Linux user #228804)
rasters...@gmail.comhttps://www.rastersoft.com
3 matches
Mail list logo