diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 17:54:47 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 17:54:47 +0000 |
commit | 7039a66b58706457c7423de60556e04545432943 (patch) | |
tree | a512daebc3674c819766664c8ea17d41ef7fef02 /e2fsprogs | |
parent | 1385899416a4396385ad421ae1f532be7103738a (diff) | |
download | busybox-w32-7039a66b58706457c7423de60556e04545432943.tar.gz busybox-w32-7039a66b58706457c7423de60556e04545432943.tar.bz2 busybox-w32-7039a66b58706457c7423de60556e04545432943.zip |
correct largefile support, add comments about it.
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/chattr.c | 4 | ||||
-rw-r--r-- | e2fsprogs/lsattr.c | 8 | ||||
-rw-r--r-- | e2fsprogs/util.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c index 618d8c440..4c341627e 100644 --- a/e2fsprogs/chattr.c +++ b/e2fsprogs/chattr.c | |||
@@ -112,9 +112,9 @@ static int chattr_dir_proc(const char *, struct dirent *, void *); | |||
112 | static void change_attributes(const char * name) | 112 | static void change_attributes(const char * name) |
113 | { | 113 | { |
114 | unsigned long fsflags; | 114 | unsigned long fsflags; |
115 | STRUCT_STAT st; | 115 | struct stat st; |
116 | 116 | ||
117 | if (LSTAT(name, &st) == -1) { | 117 | if (lstat(name, &st) == -1) { |
118 | bb_error_msg("stat %s failed", name); | 118 | bb_error_msg("stat %s failed", name); |
119 | return; | 119 | return; |
120 | } | 120 | } |
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c index 1b7cf44aa..13d5acf01 100644 --- a/e2fsprogs/lsattr.c +++ b/e2fsprogs/lsattr.c | |||
@@ -72,9 +72,9 @@ static int lsattr_dir_proc(const char *, struct dirent *, void *); | |||
72 | 72 | ||
73 | static void lsattr_args(const char *name) | 73 | static void lsattr_args(const char *name) |
74 | { | 74 | { |
75 | STRUCT_STAT st; | 75 | struct stat st; |
76 | 76 | ||
77 | if (LSTAT(name, &st) == -1) { | 77 | if (lstat(name, &st) == -1) { |
78 | bb_perror_msg("stating %s", name); | 78 | bb_perror_msg("stating %s", name); |
79 | } else { | 79 | } else { |
80 | if (S_ISDIR(st.st_mode) && !(flags & OPT_DIRS_OPT)) | 80 | if (S_ISDIR(st.st_mode) && !(flags & OPT_DIRS_OPT)) |
@@ -87,12 +87,12 @@ static void lsattr_args(const char *name) | |||
87 | static int lsattr_dir_proc(const char *dir_name, struct dirent *de, | 87 | static int lsattr_dir_proc(const char *dir_name, struct dirent *de, |
88 | void *private) | 88 | void *private) |
89 | { | 89 | { |
90 | STRUCT_STAT st; | 90 | struct stat st; |
91 | char *path; | 91 | char *path; |
92 | 92 | ||
93 | path = concat_path_file(dir_name, de->d_name); | 93 | path = concat_path_file(dir_name, de->d_name); |
94 | 94 | ||
95 | if (LSTAT(path, &st) == -1) | 95 | if (lstat(path, &st) == -1) |
96 | bb_perror_msg(path); | 96 | bb_perror_msg(path); |
97 | else { | 97 | else { |
98 | if (de->d_name[0] != '.' || (flags & OPT_ALL)) { | 98 | if (de->d_name[0] != '.' || (flags & OPT_ALL)) { |
diff --git a/e2fsprogs/util.c b/e2fsprogs/util.c index aaee50ae6..e68c457e7 100644 --- a/e2fsprogs/util.c +++ b/e2fsprogs/util.c | |||
@@ -33,12 +33,12 @@ void proceed_question(void) | |||
33 | void check_plausibility(const char *device, int force) | 33 | void check_plausibility(const char *device, int force) |
34 | { | 34 | { |
35 | int val; | 35 | int val; |
36 | STRUCT_STAT s; | 36 | struct stat s; |
37 | val = STAT(device, &s); | 37 | val = stat(device, &s); |
38 | if (force) | 38 | if (force) |
39 | return; | 39 | return; |
40 | if(val == -1) | 40 | if(val == -1) |
41 | bb_perror_msg_and_die("Could not stat %s", device); | 41 | bb_perror_msg_and_die("cannot stat %s", device); |
42 | if (!S_ISBLK(s.st_mode)) { | 42 | if (!S_ISBLK(s.st_mode)) { |
43 | printf("%s is not a block special device.\n", device); | 43 | printf("%s is not a block special device.\n", device); |
44 | proceed_question(); | 44 | proceed_question(); |