From 04445b6bff02da758a87a48c19ee4963aba62f15 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 30 Sep 2020 16:03:29 -0400 Subject: util: Don't rely on bftw And rename format_mode() to xstrmode() while I'm at it. --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index ca8c78f..551f069 100644 --- a/eval.c +++ b/eval.c @@ -600,7 +600,7 @@ bool eval_fls(const struct expr *expr, struct eval_state *state) { uintmax_t ino = statbuf->ino; uintmax_t blocks = ((uintmax_t)statbuf->blocks*BFS_STAT_BLKSIZE + 1023)/1024; char mode[11]; - format_mode(statbuf->mode, mode); + xstrmode(statbuf->mode, mode); char acl = bfs_check_acl(ftwbuf) > 0 ? '+' : ' '; uintmax_t nlink = statbuf->nlink; if (fprintf(file, "%9ju %6ju %s%c %2ju ", ino, blocks, mode, acl, nlink) < 0) { -- cgit v1.2.3