[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1522976022.11185.53.camel@perches.com>
Date: Thu, 05 Apr 2018 17:53:42 -0700
From: Joe Perches <joe@...ches.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: git source files with rw permissions
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
Powered by blists - more mailing lists