Files
rpi-buildroot/package
Joachim Wiberg e745c0b92d package/makedevs: allow recursive on directory with dangling symlinks
When using BR2_ROOTFS_DEVICE_TABLE to change ownership of /etc, like so:

  /etc        r  -1 root     wheel     - - - - -

makedevs fails due to trying to chown() a dangling symlink:

  makedevs: chown failed for /src/myLinux/output/build/buildroot-fs/ext2/target/etc/mtab: No such file or directory
  makedevs: line 25: recursive failed for /src/myLinux/output/build/buildroot-fs/ext2/target/etc: No such file or directory
  make[2]: *** [fs/ext2/ext2.mk:63: /src/myLinux/output/images/rootfs.ext2] Error 1
  make[1]: *** [Makefile:84: _all] Error 2
  make[1]: Leaving directory '/src/myLinux/buildroot'

This patch changes chown() to lchown() in two cases in makedevs.c when
the argument can be a symlink, dangling or not.

In case the recursive operation includes a chmod() as well, explicitly
exclude symlinks that are dangling, because chmod() always operates on
the link target.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-01-01 14:27:17 +01:00
..
2021-12-28 21:40:55 +01:00
2021-12-26 16:01:37 +01:00
2021-12-27 11:22:18 +01:00
2021-12-28 21:40:55 +01:00
2021-12-27 20:59:19 +01:00
2021-12-27 22:22:05 +01:00
2021-12-12 15:04:54 +01:00
2021-12-28 22:59:30 +01:00
2021-12-18 23:07:55 +01:00
2021-12-30 15:05:58 +01:00
2021-12-27 20:59:19 +01:00
2022-01-01 11:09:15 +01:00
2022-01-01 12:00:31 +01:00
2022-01-01 11:09:10 +01:00
2021-12-14 20:55:57 +01:00
2021-12-14 20:21:54 +01:00
2021-12-14 20:21:54 +01:00
2021-12-12 16:51:58 +01:00
2021-12-20 23:18:48 +01:00
2021-12-28 21:40:55 +01:00
2021-12-26 11:51:29 +01:00
2021-12-27 11:18:47 +01:00
2021-12-12 15:48:33 +01:00
2021-12-17 22:53:59 +01:00
2021-12-14 20:56:19 +01:00
2021-12-28 21:40:55 +01:00
2021-12-28 21:40:55 +01:00
2021-12-31 18:39:11 +01:00
2021-12-28 21:40:55 +01:00
2021-12-14 20:56:29 +01:00
2021-12-27 20:59:19 +01:00
2021-12-14 20:21:53 +01:00
2021-12-27 11:18:48 +01:00
2021-12-27 21:07:06 +01:00
2021-12-30 21:15:52 +01:00
2022-01-01 11:07:52 +01:00
2021-12-30 21:15:54 +01:00
2021-12-28 21:40:55 +01:00
2021-12-27 11:19:53 +01:00
2021-12-26 23:29:45 +01:00
2021-12-17 22:46:55 +01:00
2021-12-17 22:46:55 +01:00
2021-12-12 15:05:49 +01:00
2021-12-28 21:40:55 +01:00
2022-01-01 09:50:47 +01:00
2021-12-12 13:21:42 +01:00
2022-01-01 12:02:54 +01:00
2021-12-16 20:07:37 +01:00
2021-12-17 18:42:12 +01:00
2021-12-27 22:19:57 +01:00
2021-12-26 23:30:59 +01:00
2021-12-30 23:37:07 +01:00
2021-12-30 00:19:35 +01:00
2021-12-16 20:11:37 +01:00
2021-12-28 13:55:43 +01:00
2021-12-22 20:12:03 +01:00
2022-01-01 12:00:31 +01:00