diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-09-30 16:03:29 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-09-30 16:13:55 -0400 |
commit | 04445b6bff02da758a87a48c19ee4963aba62f15 (patch) | |
tree | cc682e59fb8cad80b94c6ae7c8be375f2e383cfd /eval.c | |
parent | ffda15423b9920377c8af97e208f9d78b5c80d91 (diff) | |
download | bfs-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |