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:
e31691f
)
Include filemode.h.
author
Jim Meyering
<jim@meyering.net>
Thu, 13 Aug 1998 02:06:41 +0000
(
02:06
+0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 13 Aug 1998 02:06:41 +0000
(
02:06
+0000)
src/chmod.c
patch
|
blob
|
history
src/ls.c
patch
|
blob
|
history
diff --git
a/src/chmod.c
b/src/chmod.c
index 429546f487fc91c848464ac235ea55cc9ea67d9a..aa07e6cac4a579587b270ede13757a9fccae244e 100644
(file)
--- 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 46b771b36b44ceb6933f3dbeffe1f9ee2ed94338..d61266a8984fadd7c82d01c5630683a94648cd35 100644
(file)
--- 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);