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