mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -440,15 +440,18 @@ void bb_show_usage(void)
|
||||
int bb_recursive(const char *fpath, const struct stat *sb,
|
||||
int tflag, struct FTW *ftwbuf){
|
||||
|
||||
if (chown(fpath, recursive_uid, recursive_gid) == -1) {
|
||||
if (lchown(fpath, recursive_uid, recursive_gid) == -1) {
|
||||
bb_perror_msg("chown failed for %s", fpath);
|
||||
return -1;
|
||||
}
|
||||
if (recursive_mode != -1) {
|
||||
if (chmod(fpath, recursive_mode) < 0) {
|
||||
bb_perror_msg("chmod failed for %s", fpath);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* chmod() is optional, also skip if dangling symlink */
|
||||
if (recursive_mode == -1 || (tflag == FTW_SL && !access(fpath, F_OK)))
|
||||
return 0;
|
||||
|
||||
if (chmod(fpath, recursive_mode) < 0) {
|
||||
bb_perror_msg("chmod failed for %s", fpath);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -628,7 +631,7 @@ int main(int argc, char **argv)
|
||||
if (mknod(full_name_inc, mode, rdev) < 0) {
|
||||
bb_perror_msg("line %d: can't create node %s", linenum, full_name_inc);
|
||||
ret = EXIT_FAILURE;
|
||||
} else if (chown(full_name_inc, uid, gid) < 0) {
|
||||
} else if (lchown(full_name_inc, uid, gid) < 0) {
|
||||
bb_perror_msg("line %d: can't chown %s", linenum, full_name_inc);
|
||||
ret = EXIT_FAILURE;
|
||||
} else if (chmod(full_name_inc, mode) < 0) {
|
||||
|
||||
@@ -15,8 +15,12 @@ HOST_MAKEDEVS_CFLAGS += -DEXTENDED_ATTRIBUTES
|
||||
HOST_MAKEDEVS_LDFLAGS += -lcap
|
||||
endif
|
||||
|
||||
define HOST_MAKEDEVS_EXTRACT_CMDS
|
||||
cp $(HOST_MAKEDEVS_PKGDIR)/makedevs.c $(@D)
|
||||
endef
|
||||
|
||||
define HOST_MAKEDEVS_BUILD_CMDS
|
||||
$(HOSTCC) $(HOST_MAKEDEVS_CFLAGS) package/makedevs/makedevs.c \
|
||||
$(HOSTCC) $(HOST_MAKEDEVS_CFLAGS) $(@D)/makedevs.c \
|
||||
-o $(@D)/makedevs $(HOST_MAKEDEVS_LDFLAGS)
|
||||
endef
|
||||
|
||||
|
||||
Reference in New Issue
Block a user