summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-09-30 16:03:29 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-09-30 16:13:55 -0400
commit04445b6bff02da758a87a48c19ee4963aba62f15 (patch)
treecc682e59fb8cad80b94c6ae7c8be375f2e383cfd /eval.c
parentffda15423b9920377c8af97e208f9d78b5c80d91 (diff)
downloadbfs-04445b6bff02da758a87a48c19ee4963aba62f15.tar.xz
util: Don't rely on bftw
And rename format_mode() to xstrmode() while I'm at it.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
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) {