Procházet zdrojové kódy

Fix regression from 08d87405d0

master
Arun Prakash Jana před 7 roky
rodič
revize
463c270caf
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 7 přidání a 6 odebrání
  1. +7
    -6
      nnn.c

+ 7
- 6
nnn.c Zobrazit soubor

@@ -1079,13 +1079,14 @@ show_stats(char* fpath, char* fname, struct stat *sb)

/* Show file name or 'symlink' -> 'target' */
if (perms[0] == 'l') {
char symtgt[PATH_MAX];
ssize_t len = readlink(fpath, symtgt, PATH_MAX);
/* Note that MAX_CMD_LEN > PATH_MAX */
ssize_t len = readlink(fpath, g_buf, MAX_CMD_LEN);
if (len != -1) {
symtgt[len] = '\0';
dprintf(fd, " File: '%s' -> '%s'",
replace_escape(fname),
replace_escape(symtgt));
g_buf[len] = '\0';
dprintf(fd, " File: '%s' -> ",
replace_escape(fname));
dprintf(fd, "'%s'",
replace_escape(g_buf));
}
} else
dprintf(fd, " File: '%s'", replace_escape(fname));


Načítá se…
Zrušit
Uložit