diff options
author | pjd <pjd@FreeBSD.org> | 2013-02-22 20:49:50 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2013-02-22 20:49:50 +0000 |
commit | 7df9c10e32d38c32b3d44b634f30395ae3860312 (patch) | |
tree | 10e33e43e42192cc4251cd51ef375786be3c6aa9 /usr.sbin/extattr | |
parent | 2f7ddc2dcde7342f40a2f32f1fcf49aa4adcc8af (diff) | |
download | FreeBSD-src-7df9c10e32d38c32b3d44b634f30395ae3860312.zip FreeBSD-src-7df9c10e32d38c32b3d44b634f30395ae3860312.tar.gz |
Don't print an empty line for files with no attributes when -q is given for
lsextattr(8).
Diffstat (limited to 'usr.sbin/extattr')
-rw-r--r-- | usr.sbin/extattr/rmextattr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/extattr/rmextattr.c b/usr.sbin/extattr/rmextattr.c index db7df1a..cab6c7f 100644 --- a/usr.sbin/extattr/rmextattr.c +++ b/usr.sbin/extattr/rmextattr.c @@ -237,7 +237,8 @@ main(int argc, char *argv[]) printf("%s%*.*s", i ? "\t" : "", ch, ch, buf + i + 1); } - printf("\n"); + if (!flag_quiet || error > 0) + printf("\n"); continue; case EAGET: if (flag_nofollow) |