projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch from Matt Kraai to enable proxy support.
[oweals/busybox.git]
/
ls.c
diff --git
a/ls.c
b/ls.c
index 225132ba4dc2fa495901fb392dbc286948597dca..94c73b377433ab8c1a8984069f7f75028f09b1dd 100644
(file)
--- a/
ls.c
+++ b/
ls.c
@@
-181,7
+181,7
@@
static int my_stat(struct dnode *cur)
#ifdef BB_FEATURE_LS_FOLLOWLINKS
if (follow_links == TRUE) {
if (stat(cur->fullname, &cur->dstat)) {
#ifdef BB_FEATURE_LS_FOLLOWLINKS
if (follow_links == TRUE) {
if (stat(cur->fullname, &cur->dstat)) {
- error
M
sg("%s: %s\n", cur->fullname, strerror(errno));
+ error
_m
sg("%s: %s\n", cur->fullname, strerror(errno));
status = EXIT_FAILURE;
free(cur->fullname);
free(cur);
status = EXIT_FAILURE;
free(cur->fullname);
free(cur);
@@
-190,7
+190,7
@@
static int my_stat(struct dnode *cur)
} else
#endif
if (lstat(cur->fullname, &cur->dstat)) {
} else
#endif
if (lstat(cur->fullname, &cur->dstat)) {
- error
M
sg("%s: %s\n", cur->fullname, strerror(errno));
+ error
_m
sg("%s: %s\n", cur->fullname, strerror(errno));
status = EXIT_FAILURE;
free(cur->fullname);
free(cur);
status = EXIT_FAILURE;
free(cur->fullname);
free(cur);
@@
-511,7
+511,7
@@
struct dnode **list_dir(char *path)
nfiles= 0;
dir = opendir(path);
if (dir == NULL) {
nfiles= 0;
dir = opendir(path);
if (dir == NULL) {
- error
M
sg("%s: %s\n", path, strerror(errno));
+ error
_m
sg("%s: %s\n", path, strerror(errno));
status = EXIT_FAILURE;
return(NULL); /* could not open the dir */
}
status = EXIT_FAILURE;
return(NULL); /* could not open the dir */
}
@@
-591,7
+591,7
@@
int list_single(struct dnode *dn)
column += 5;
break;
case LIST_MODEBITS:
column += 5;
break;
case LIST_MODEBITS:
- fprintf(stdout, "%10s", (char *)mode
S
tring(dn->dstat.st_mode));
+ fprintf(stdout, "%10s", (char *)mode
_s
tring(dn->dstat.st_mode));
column += 10;
break;
case LIST_NLINKS:
column += 10;
break;
case LIST_NLINKS: