Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 0/3] package/makedevs: allow recursive on directory with symlinks
@ 2021-12-23  9:07 Joachim Wiberg
  2021-12-23  9:07 ` [Buildroot] [PATCH v3 1/3] package/makedevs: allow recursive on directory with dangling symlinks Joachim Wiberg
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Joachim Wiberg @ 2021-12-23  9:07 UTC (permalink / raw)
  To: buildroot; +Cc: Joachim Wiberg, Matt Weber, Yann E . MORIN

Hi,

take three on fixing the problem with, as it turns out, *dangling*,
symlinks when running makedevs recursively on a directory.  Thanks to
Arnout for pointing this out!

As started in v2, this patch set includes a coding style cleanup, and
now also with a first .clang-format for Buildroot, as suggested by
Arnout.  I've not enforced it strictly on the code base, e.g. max line
lengths caused a way too big diff.

Best regards
 /Joachim

---

v3:
- Problem only applies to *dangling* symlinks, feedback from Arnout
  Patch updated to skip chmod() on symlinks that cannot be accessed
- Import .clang-format file from Linux 5.15.6, suggestion by Arnout
- Employ clang-format to improve coding style cleanup, see commit
  notes for exceptions made

v2: 
 - Use lchown() instead on symlinks, feedback from Yann
 - Initial coding style cleanup

v1:
 - Skip recursive chown() and chmod() on all symlinks

Joachim Wiberg (3):
  package/makedevs: allow recursive on directory with dangling symlinks
  .clang-format: initial import from Linux 5.15.6
  package/makedevs: coding style and whitespace cleanup

 .clang-format               | 566 ++++++++++++++++++++++++++++++++++++
 package/makedevs/makedevs.c | 119 ++++----
 2 files changed, 631 insertions(+), 54 deletions(-)
 create mode 100644 .clang-format
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-01-01 14:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-23  9:07 [Buildroot] [PATCH v3 0/3] package/makedevs: allow recursive on directory with symlinks Joachim Wiberg
2021-12-23  9:07 ` [Buildroot] [PATCH v3 1/3] package/makedevs: allow recursive on directory with dangling symlinks Joachim Wiberg
2022-01-01 13:32   ` Yann E. MORIN
2021-12-23  9:07 ` [Buildroot] [PATCH v3 2/3] .clang-format: initial import from Linux 5.15.6 Joachim Wiberg
2022-01-01 13:58   ` Yann E. MORIN
2021-12-23  9:08 ` [Buildroot] [PATCH v3 3/3] package/makedevs: coding style and whitespace cleanup Joachim Wiberg
2022-01-01 14:13   ` Yann E. MORIN
2022-01-01 14:26     ` Joachim Wiberg
2022-01-01 14:38       ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox