projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4_3_Reno release
[unix-history]
/
usr
/
src
/
usr.bin
/
file
/
file.c
diff --git
a/usr/src/usr.bin/file/file.c
b/usr/src/usr.bin/file/file.c
index
1713c4b
..
a14c39b
100644
(file)
--- a/
usr/src/usr.bin/file/file.c
+++ b/
usr/src/usr.bin/file/file.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)file.c 4.1
6 (Berkeley) %G%
";
+static char sccsid[] = "@(#)file.c 4.1
7 (Berkeley) 7/1/90
";
#endif
/*
* file - determine type of file
#endif
/*
* file - determine type of file
@@
-57,7
+57,6
@@
char **argv;
int l = strlen(p);
if (l>0)
p[l-1] = '\0';
int l = strlen(p);
if (l>0)
p[l-1] = '\0';
- printf("%s: ", p);
type(p);
if (ifile>=0)
close(ifile);
type(p);
if (ifile>=0)
close(ifile);
@@
-65,7
+64,6
@@
char **argv;
exit(1);
}
while(argc > 1) {
exit(1);
}
while(argc > 1) {
- printf("%s: ", argv[1]);
type(argv[1]);
fflush(stdout);
argc--;
type(argv[1]);
fflush(stdout);
argc--;
@@
-89,6
+87,7
@@
char *file;
fprintf(stderr, "file: %s: %s\n", file, strerror(errno));
return;
}
fprintf(stderr, "file: %s: %s\n", file, strerror(errno));
return;
}
+ printf("%s:\t", file);
switch (mbuf.st_mode & S_IFMT) {
case S_IFLNK:
switch (mbuf.st_mode & S_IFMT) {
case S_IFLNK: