projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20694b3
)
(fspec_init_dp): Use DTTOIF. Fix syntax error in code
author
Jim Meyering
<jim@meyering.net>
Fri, 3 Oct 1997 02:44:33 +0000
(
02:44
+0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 3 Oct 1997 02:44:33 +0000
(
02:44
+0000)
that gets compiled on BSDI3.0 systems.
src/rm.c
patch
|
blob
|
history
diff --git
a/src/rm.c
b/src/rm.c
index
33b679d
..
7528258
100644
(file)
--- a/
src/rm.c
+++ b/
src/rm.c
@@
-466,11
+466,11
@@
fspec_init_dp (struct File_spec *fs, struct dirent *dp)
fs->have_filetype_mode = 0;
fs->inum = D_INO (dp);
-#if D_TYPE_IN_DIRENT && defined (DT_UNKNOWN)
- if (
filetype_mod
e != DT_UNKNOWN)
+#if D_TYPE_IN_DIRENT && defined (DT_UNKNOWN)
&& defined (DTTOIF)
+ if (
dp->d_typ
e != DT_UNKNOWN)
{
fs->have_filetype_mode = 1;
- fs->mode =
filetype_mode
;
+ fs->mode =
DTTOIF (dp->d_type)
;
}
#endif
}