Lines 1-7
Link Here
|
1 |
*** src/Makefile.in.orig Sun Aug 10 17:14:46 1997 |
1 |
*** src/Makefile.in.orig Thu Feb 18 08:40:27 1999 |
2 |
--- src/Makefile.in Sun Aug 10 19:14:33 1997 |
2 |
--- src/Makefile.in Thu Feb 18 08:44:15 1999 |
3 |
*************** |
3 |
*************** |
4 |
*** 49,57 **** |
4 |
*** 95,103 **** |
5 |
EXTRAdir = $(bindir) |
5 |
EXTRAdir = $(bindir) |
6 |
EXTRA_PROGRAMS = df mvdir |
6 |
EXTRA_PROGRAMS = df mvdir |
7 |
|
7 |
|
Lines 11-194
Link Here
|
11 |
|
11 |
|
12 |
libexec_PROGRAMS = @MVDIR_PROG@ |
12 |
libexec_PROGRAMS = @MVDIR_PROG@ |
13 |
datadir = $(prefix)/@DATADIRNAME@ |
13 |
datadir = $(prefix)/@DATADIRNAME@ |
14 |
--- 49,55 ---- |
14 |
--- 95,101 ---- |
15 |
EXTRAdir = $(bindir) |
15 |
EXTRAdir = $(bindir) |
16 |
EXTRA_PROGRAMS = df mvdir |
16 |
EXTRA_PROGRAMS = df mvdir |
17 |
|
17 |
|
18 |
! bin_PROGRAMS = dircolors gnuls |
18 |
! bin_PROGRAMS = gnuls dir vdir dircolors |
19 |
|
19 |
|
20 |
libexec_PROGRAMS = @MVDIR_PROG@ |
20 |
libexec_PROGRAMS = @MVDIR_PROG@ |
21 |
datadir = $(prefix)/@DATADIRNAME@ |
21 |
datadir = $(prefix)/@DATADIRNAME@ |
22 |
*************** |
22 |
*************** |
23 |
*** 247,252 **** |
23 |
*** 203,209 **** |
24 |
--- 245,253 ---- |
24 |
ls_OBJECTS = ls$U.o ls-ls$U.o |
25 |
$(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \ |
25 |
ls_LDADD = $(LDADD) |
26 |
else :; fi; \ |
26 |
ls_DEPENDENCIES = ../lib/libfu.a |
27 |
done |
27 |
! ls_LDFLAGS = |
28 |
+ ln -f $(bindir)/gnuls $(bindir)/linuxls |
28 |
mkdir_SOURCES = mkdir.c |
29 |
+ ln -f $(bindir)/gnuls $(bindir)/vdir |
29 |
mkdir_OBJECTS = mkdir$U.o |
30 |
+ ln -f $(bindir)/gnuls $(bindir)/dir |
30 |
mkdir_LDADD = $(LDADD) |
31 |
|
31 |
--- 201,207 ---- |
32 |
uninstall-binPROGRAMS: |
32 |
ls_OBJECTS = ls$U.o ls-ls$U.o |
33 |
list="$(bin_PROGRAMS)"; for p in $$list; do \ |
33 |
ls_LDADD = $(LDADD) |
|
|
34 |
ls_DEPENDENCIES = ../lib/libfu.a |
35 |
! ls_LDFLAGS = -o gnuls |
36 |
mkdir_SOURCES = mkdir.c |
37 |
mkdir_OBJECTS = mkdir$U.o |
38 |
mkdir_LDADD = $(LDADD) |
34 |
*************** |
39 |
*************** |
35 |
*** 392,398 **** |
40 |
*** 412,419 **** |
|
|
41 |
@rm -f vdir |
36 |
$(LINK) $(vdir_LDFLAGS) $(vdir_OBJECTS) $(vdir_LDADD) $(LIBS) |
42 |
$(LINK) $(vdir_LDFLAGS) $(vdir_OBJECTS) $(vdir_LDADD) $(LIBS) |
37 |
$(ls_OBJECTS): ../config.h |
|
|
38 |
|
43 |
|
39 |
! ls: $(ls_OBJECTS) $(ls_DEPENDENCIES) |
44 |
! ls: $(ls_OBJECTS) $(ls_DEPENDENCIES) |
|
|
45 |
! @rm -f ls |
40 |
$(LINK) $(ls_LDFLAGS) $(ls_OBJECTS) $(ls_LDADD) $(LIBS) |
46 |
$(LINK) $(ls_LDFLAGS) $(ls_OBJECTS) $(ls_LDADD) $(LIBS) |
41 |
$(mkdir_OBJECTS): ../config.h |
|
|
42 |
|
47 |
|
43 |
--- 393,399 ---- |
48 |
mkdir: $(mkdir_OBJECTS) $(mkdir_DEPENDENCIES) |
|
|
49 |
--- 410,417 ---- |
50 |
@rm -f vdir |
44 |
$(LINK) $(vdir_LDFLAGS) $(vdir_OBJECTS) $(vdir_LDADD) $(LIBS) |
51 |
$(LINK) $(vdir_LDFLAGS) $(vdir_OBJECTS) $(vdir_LDADD) $(LIBS) |
45 |
$(ls_OBJECTS): ../config.h |
|
|
46 |
|
52 |
|
47 |
! gnuls: $(ls_OBJECTS) $(ls_DEPENDENCIES) |
53 |
! gnuls: $(ls_OBJECTS) $(ls_DEPENDENCIES) |
|
|
54 |
! @rm -f gnuls |
48 |
$(LINK) $(ls_LDFLAGS) $(ls_OBJECTS) $(ls_LDADD) $(LIBS) |
55 |
$(LINK) $(ls_LDFLAGS) $(ls_OBJECTS) $(ls_LDADD) $(LIBS) |
49 |
$(mkdir_OBJECTS): ../config.h |
|
|
50 |
|
51 |
*** src/dircolors.c.orig Sun Jan 26 00:54:17 1997 |
52 |
--- src/dircolors.c Sat Oct 25 16:00:40 1997 |
53 |
*************** |
54 |
*** 72,84 **** |
55 |
"NORMAL", "NORM", "FILE", "DIR", "LNK", "LINK", |
56 |
"SYMLINK", "ORPHAN", "MISSING", "FIFO", "PIPE", "SOCK", "BLK", "BLOCK", |
57 |
"CHR", "CHAR", "EXEC", "LEFT", "LEFTCODE", "RIGHT", "RIGHTCODE", "END", |
58 |
! "ENDCODE", NULL |
59 |
}; |
60 |
|
61 |
static const char *const ls_codes[] = |
62 |
{ |
63 |
"no", "no", "fi", "di", "ln", "ln", "ln", "or", "mi", "pi", "pi", |
64 |
"so", "bd", "bd", "cd", "cd", "ex", "lc", "lc", "rc", "rc", "ec", "ec" |
65 |
}; |
66 |
|
67 |
static struct option const long_options[] = |
68 |
--- 72,86 ---- |
69 |
"NORMAL", "NORM", "FILE", "DIR", "LNK", "LINK", |
70 |
"SYMLINK", "ORPHAN", "MISSING", "FIFO", "PIPE", "SOCK", "BLK", "BLOCK", |
71 |
"CHR", "CHAR", "EXEC", "LEFT", "LEFTCODE", "RIGHT", "RIGHTCODE", "END", |
72 |
! "ENDCODE", "SUID", "SETUID", "SGID", "SETGID", "WRO", "WRITEOTHERS", |
73 |
! "WT", "WROT", "WRITEOTHERSSTICKY", NULL |
74 |
}; |
75 |
|
76 |
static const char *const ls_codes[] = |
77 |
{ |
78 |
"no", "no", "fi", "di", "ln", "ln", "ln", "or", "mi", "pi", "pi", |
79 |
"so", "bd", "bd", "cd", "cd", "ex", "lc", "lc", "rc", "rc", "ec", "ec" |
80 |
+ "su", "su", "sg", "sg", "wo", "wo", "wo", "wt", "wt", "wt", NULL |
81 |
}; |
82 |
|
83 |
static struct option const long_options[] = |
84 |
*** src/ls.c.orig Sun Jan 26 00:56:10 1997 |
85 |
--- src/ls.c Sat Oct 25 16:00:30 1997 |
86 |
*************** |
87 |
*** 359,371 **** |
88 |
enum indicator_no |
89 |
{ |
90 |
C_LEFT, C_RIGHT, C_END, C_NORM, C_FILE, C_DIR, C_LINK, C_FIFO, C_SOCK, |
91 |
! C_BLK, C_CHR, C_MISSING, C_ORPHAN, C_EXEC |
92 |
}; |
93 |
|
94 |
static const char *const indicator_name[]= |
95 |
{ |
96 |
"lc", "rc", "ec", "no", "fi", "di", "ln", "pi", "so", |
97 |
! "bd", "cd", "mi", "or", "ex", NULL |
98 |
}; |
99 |
|
100 |
struct col_ext_type |
101 |
--- 359,371 ---- |
102 |
enum indicator_no |
103 |
{ |
104 |
C_LEFT, C_RIGHT, C_END, C_NORM, C_FILE, C_DIR, C_LINK, C_FIFO, C_SOCK, |
105 |
! C_BLK, C_CHR, C_MISSING, C_ORPHAN, C_EXEC, C_UID, C_GID, C_WRO, C_WT |
106 |
}; |
107 |
|
108 |
static const char *const indicator_name[]= |
109 |
{ |
110 |
"lc", "rc", "ec", "no", "fi", "di", "ln", "pi", "so", |
111 |
! "bd", "cd", "mi", "or", "ex", "su", "sg", "wo", "wt", NULL |
112 |
}; |
113 |
|
114 |
struct col_ext_type |
115 |
*************** |
116 |
*** 390,396 **** |
117 |
{ LEN_STR_PAIR ("01;33") }, /* cd: Char device: bright yellow */ |
118 |
{ 0, NULL }, /* mi: Missing file: undefined */ |
119 |
{ 0, NULL }, /* or: Orphanned symlink: undefined */ |
120 |
! { LEN_STR_PAIR ("01;32") } /* ex: Executable: bright green */ |
121 |
}; |
122 |
|
123 |
/* FIXME: comment */ |
124 |
--- 390,400 ---- |
125 |
{ LEN_STR_PAIR ("01;33") }, /* cd: Char device: bright yellow */ |
126 |
{ 0, NULL }, /* mi: Missing file: undefined */ |
127 |
{ 0, NULL }, /* or: Orphanned symlink: undefined */ |
128 |
! { LEN_STR_PAIR ("01;32") }, /* ex: Executable: bright green */ |
129 |
! { LEN_STR_PAIR ("37;41") }, /* su: setuid: white on red */ |
130 |
! { LEN_STR_PAIR ("30;43") }, /* sg: setgid: black on yellow */ |
131 |
! { LEN_STR_PAIR ("37;44") }, /* wo: writeable-other:white on blue */ |
132 |
! { LEN_STR_PAIR ("37;42") }, /* wt: wo w/ sticky: white on green */ |
133 |
}; |
134 |
|
135 |
/* FIXME: comment */ |
136 |
*************** |
137 |
*** 2407,2413 **** |
138 |
else |
139 |
{ |
140 |
if (S_ISDIR (mode)) |
141 |
! type = C_DIR; |
142 |
|
143 |
#ifdef S_ISLNK |
144 |
else if (S_ISLNK (mode)) |
145 |
--- 2411,2424 ---- |
146 |
else |
147 |
{ |
148 |
if (S_ISDIR (mode)) |
149 |
! { |
150 |
! if ((mode && MODE_WT) == MODE_WT) |
151 |
! type = C_WT; |
152 |
! else if ((mode && MODE_WRO) == MODE_WRO) |
153 |
! type = C_WRO; |
154 |
! else |
155 |
! type = C_DIR; |
156 |
! } |
157 |
|
56 |
|
158 |
#ifdef S_ISLNK |
57 |
mkdir: $(mkdir_OBJECTS) $(mkdir_DEPENDENCIES) |
159 |
else if (S_ISLNK (mode)) |
|
|
160 |
*************** |
161 |
*** 2435,2441 **** |
162 |
type = C_CHR; |
163 |
#endif |
164 |
|
165 |
! if (type == C_FILE && (mode & S_IXUGO) != 0) |
166 |
type = C_EXEC; |
167 |
|
168 |
/* Check the file's suffix only if still classified as C_FILE. */ |
169 |
--- 2446,2458 ---- |
170 |
type = C_CHR; |
171 |
#endif |
172 |
|
173 |
! if ((type == C_FILE) && ((mode & S_ISUID) != 0)) |
174 |
! type = C_UID; |
175 |
! |
176 |
! else if ((type == C_FILE) && ((mode & S_ISGID) != 0)) |
177 |
! type = C_GID; |
178 |
! |
179 |
! else if (type == C_FILE && (mode & S_IXUGO) != 0) |
180 |
type = C_EXEC; |
181 |
|
182 |
/* Check the file's suffix only if still classified as C_FILE. */ |
183 |
*** src/ls.h.orig Wed Jun 16 11:24:58 1993 |
184 |
--- src/ls.h Sat Oct 25 16:00:35 1997 |
185 |
*************** |
186 |
*** 7,10 **** |
187 |
--- 7,13 ---- |
188 |
/* This is for the `vdir' program. */ |
189 |
#define LS_LONG_FORMAT 3 |
190 |
|
191 |
+ #define MODE_WT 01002 |
192 |
+ #define MODE_WRO 02 |
193 |
+ |
194 |
extern int ls_mode; |