summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-08-13 02:06:41 +0000
committerJim Meyering <jim@meyering.net>1998-08-13 02:06:41 +0000
commit461aea548a7fed9e7eadca861537f8ea7f53f2ba (patch)
treecc7b4a1f4ebd53c5d1f23b797a924cacc20f96e4
parente31691fc1d754b1222957a57fa02332bbd6d8914 (diff)
downloadcoreutils-461aea548a7fed9e7eadca861537f8ea7f53f2ba.tar.xz
Include filemode.h.
-rw-r--r--src/chmod.c2
-rw-r--r--src/ls.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/chmod.c b/src/chmod.c
index 429546f48..aa07e6cac 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -27,6 +27,7 @@
#include "closeout.h"
#include "error.h"
#include "savedir.h"
+#include "filemode.h"
enum Change_status
{
@@ -47,7 +48,6 @@ enum Verbosity
V_off
};
-void mode_string ();
void strip_trailing_slashes ();
static int change_dir_mode PARAMS ((const char *dir,
diff --git a/src/ls.c b/src/ls.c
index 46b771b36..d61266a89 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -72,6 +72,7 @@
#include "xstrtol.h"
#include "strverscmp.h"
#include "quotearg.h"
+#include "filemode.h"
#define obstack_chunk_alloc malloc
#define obstack_chunk_free free
@@ -132,8 +133,6 @@ struct bin_str
time_t time ();
#endif
-void mode_string ();
-
char *getgroup ();
char *getuser ();
void strip_trailing_slashes ();
@@ -2183,6 +2182,7 @@ print_long_format (const struct fileinfo *f)
char *user_name;
#if HAVE_ST_DM_MODE
+ /* Cray DMF: look at the file's migrated, not real, status */
mode_string (f->stat.st_dm_mode, modebuf);
#else
mode_string (f->stat.st_mode, modebuf);