From: luukvbaal <31730729+luukvbaal@users.noreply.github.com> Date: Fri, 26 Mar 2021 13:54:54 +0000 (-0700) Subject: Show non matching guid in statusbar (#921) X-Git-Tag: v3.7~42 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d5dac4c686a13e502b6cbb30c53b768012b2c2cc;p=nnn.git Show non matching guid in statusbar (#921) --- diff --git a/src/nnn.c b/src/nnn.c index 6e5b2110..f2ed36ee 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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