summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Tribble <peter.tribble@gmail.com>2018-08-17 18:14:24 +0100
committerDan McDonald <danmcd@joyent.com>2018-08-20 13:35:26 -0400
commit74fbde0026523e948c17e57c29e2d53edad1c600 (patch)
tree81dae86c9a3c95e0a0db5400f9df168a474720b6
parent16b6a7e9a6f9116cc7c300e732be5000d82934e7 (diff)
downloadillumos-joyent-74fbde0026523e948c17e57c29e2d53edad1c600.tar.gz
9750 pkgchk -l package list runs together
Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/lib/libpkg/common/tputcfent.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/usr/src/lib/libpkg/common/tputcfent.c b/usr/src/lib/libpkg/common/tputcfent.c
index 11601ded9e..3b613a29c6 100644
--- a/usr/src/lib/libpkg/common/tputcfent.c
+++ b/usr/src/lib/libpkg/common/tputcfent.c
@@ -57,36 +57,36 @@ tputcfent(struct cfent *ept, FILE *fp)
(void) fprintf(fp, pkg_gt("Type: "));
switch (ept->ftype) {
- case 'f':
+ case 'f':
(void) fputs(pkg_gt("regular file\n"), fp);
break;
- case 'd':
+ case 'd':
(void) fputs(pkg_gt("directory\n"), fp);
break;
- case 'x':
+ case 'x':
(void) fputs(pkg_gt("exclusive directory\n"), fp);
break;
- case 'v':
+ case 'v':
(void) fputs(pkg_gt("volatile file\n"), fp);
break;
- case 'e':
+ case 'e':
(void) fputs(pkg_gt("editted file\n"), fp);
break;
- case 'p':
+ case 'p':
(void) fputs(pkg_gt("named pipe\n"), fp);
break;
- case 'i':
+ case 'i':
(void) fputs(pkg_gt("installation file\n"), fp);
break;
- case 'c':
- case 'b':
+ case 'c':
+ case 'b':
(void) fprintf(fp, pkg_gt("%s special device\n"),
(ept->ftype == 'b') ? pkg_gt("block") :
pkg_gt("character"));
@@ -107,21 +107,21 @@ tputcfent(struct cfent *ept, FILE *fp)
break;
- case 'l':
+ case 'l':
(void) fputs(pkg_gt("linked file\n"), fp);
pt = (ept->ainfo.local ? ept->ainfo.local :
(char *)pkg_gt("(unknown)"));
(void) fprintf(fp, pkg_gt("Source of link: %s\n"), pt);
break;
- case 's':
+ case 's':
(void) fputs(pkg_gt("symbolic link\n"), fp);
pt = (ept->ainfo.local ? ept->ainfo.local :
(char *)pkg_gt("(unknown)"));
(void) fprintf(fp, pkg_gt("Source of link: %s\n"), pt);
break;
- default:
+ default:
(void) fputs(pkg_gt("unknown\n"), fp);
break;
}
@@ -174,7 +174,7 @@ tputcfent(struct cfent *ept, FILE *fp)
*/
if (pinfo->status == '!')
status++;
- (void) fprintf(fp, "%-15s", pinfo->pkg);
+ (void) fprintf(fp, "%-14s ", pinfo->pkg);
if ((++count % 5) == 0) {
(void) fputc('\n', fp);
(void) fputc('\t', fp);