svn commit: r247164 - head/usr.sbin/extattr

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Feb 22 20:49:50 UTC 2013


Author: pjd
Date: Fri Feb 22 20:49:50 2013
New Revision: 247164
URL: http://svnweb.freebsd.org/changeset/base/247164

Log:
  Don't print an empty line for files with no attributes when -q is given for
  lsextattr(8).

Modified:
  head/usr.sbin/extattr/rmextattr.c

Modified: head/usr.sbin/extattr/rmextattr.c
==============================================================================
--- head/usr.sbin/extattr/rmextattr.c	Fri Feb 22 20:16:16 2013	(r247163)
+++ head/usr.sbin/extattr/rmextattr.c	Fri Feb 22 20:49:50 2013	(r247164)
@@ -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)


More information about the svn-src-all mailing list