Show non matching guid in statusbar (#921)

This commit is contained in:
luukvbaal 2021-03-26 06:54:54 -07:00 committed by GitHub
parent 9c218d41e8
commit d5dac4c686
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5608,7 +5608,7 @@ static bool set_time_type(int *presel)
static void statusbar(char *path) static void statusbar(char *path)
{ {
int i = 0, extnlen = 0; int i = 0, extnlen = 0;
char *ptr; char *ptr, guidbuf[5];
pEntry pent = &pdents[cur]; pEntry pent = &pdents[cur];
if (!ndents) { if (!ndents) {
@ -5673,14 +5673,18 @@ static void statusbar(char *path)
if (pw) if (pw)
addstr(pw->pw_name); addstr(pw->pw_name);
else else {
addch('-'); sprintf(guidbuf, "%d", pent->uid);
addch(' '); addstr(guidbuf);
}
addch(':');
if (gr) if (gr)
addstr(gr->gr_name); addstr(gr->gr_name);
else else {
addch('-'); sprintf(guidbuf, "%d", pent->gid);
addstr(guidbuf);
}
addch(' '); addch(' ');
} }
#endif #endif