linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git source files with rw permissions
@ 2018-04-06  0:53 Joe Perches
  2018-04-07 20:36 ` Linus Torvalds
  0 siblings, 1 reply; 6+ messages in thread
From: Joe Perches @ 2018-04-06  0:53 UTC (permalink / raw)
  To: LKML; +Cc: Linus Torvalds, Andrew Morton

Some .c source files have r.x permissions (0755) that
should be updated.

A trivial script on a clean git tree like:

$ git ls-files -- "*.[chsS]" | \
  xargs ls -la | \
  grep -P "^[^l](?:.{2,2}x|.{5,5}x|.{8,8}x)" | \
  awk '{print $9}'

today shows:

drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
drivers/net/ethernet/cadence/macb_ptp.c

It would be good to update those via some script like:

$ git ls-files -- "*.[chsS]" | \
  xargs ls -la | \
  grep -P
"^[^l](?:.{2,2}x|.{5,5}x|.{8,8}x)" | \
  awk '{print $9}' | \
  xargs
chmod 644
tmpfile=$(mktemp)
echo "treewide: chmod executable source files
to 0644" > $tmpfile
git commit -s -a -F $tmpfile
rm -f $tmpfile

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

end of thread, other threads:[~2023-01-28 19:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06  0:53 git source files with rw permissions Joe Perches
2018-04-07 20:36 ` Linus Torvalds
2023-01-26 16:07   ` Joe Perches
2023-01-26 18:19     ` Linus Torvalds
2023-01-28  4:06       ` Joe Perches
2023-01-28 19:31         ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).