FreeBSD Bugzilla – Attachment 9539 Details for
Bug 19514
patch to prevent tail'ing directories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 591 bytes, created by
kbyanc
on 2000-06-26 09:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
kbyanc
Created:
2000-06-26 09:40:00 UTC
Size:
591 bytes
patch
obsolete
>--- usr.bin/tail/tail.c.orig Mon Jun 26 01:30:01 2000 >+++ usr.bin/tail/tail.c Mon Jun 26 01:38:38 2000 >@@ -171,6 +171,16 @@ > ierr(); > continue; > } >+ if (sb.st_mode & S_IFDIR) >+ errx(1, "%s is a directory", fname); >+ if (sb.st_mode & S_IFLNK) >+ /* This should transparently be resolved and >+ * thus never happen. >+ */ >+ errx(1, "%s is a symlink", fname); >+ if (sb.st_mode & S_IFWHT) >+ /* This should never happen. */ >+ errx(1, "%s is a whiteout entry", fname); > if (argc > 1) { > (void)printf("%s==> %s <==\n", > first ? "" : "\n", fname);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19514
: 9539