Only use one %s when there is only one argument to print.

Submitted by:	keramida
Approved by:	sheldonh (mentor)
This commit is contained in:
Johan Karlsson 2002-07-21 15:11:32 +00:00
parent 0c9dd24bbb
commit da2dc5cc61

View File

@ -81,7 +81,7 @@ main(argc, argv)
err(2, "stat");
if (*argv == NULL) {
(void)printf("is %s%s\n",
(void)printf("is %s\n",
sb.st_mode & S_IXUSR ? "y" :
sb.st_mode & S_IXGRP ? "b" : "n");
return(sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1);