View | Details | Raw Unified | Return to bug 19514
Collapse All | Expand All

(-)usr.bin/tail/tail.c (+10 lines)
Lines 171-176 Link Here
171
				ierr();
171
				ierr();
172
				continue;
172
				continue;
173
			}
173
			}
174
			if (sb.st_mode & S_IFDIR)
175
				errx(1, "%s is a directory", fname);
176
			if (sb.st_mode & S_IFLNK)
177
				/* This should transparently be resolved and
178
				 * thus never happen.
179
				 */
180
				errx(1, "%s is a symlink", fname);
181
			if (sb.st_mode & S_IFWHT)
182
				/* This should never happen. */
183
				errx(1, "%s is a whiteout entry", fname);
174
			if (argc > 1) {
184
			if (argc > 1) {
175
				(void)printf("%s==> %s <==\n",
185
				(void)printf("%s==> %s <==\n",
176
				    first ? "" : "\n", fname);
186
				    first ? "" : "\n", fname);

Return to bug 19514