From 084d0a37c8d0f1a991ce22ccc6d8c3dd8ca12a33 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 26 Dec 2012 22:14:47 -0500 Subject: (scripted) fix file permission breakage introduced in commit d62bd1 I did this with this command: git diff d62bd1^..d62bd1 | egrep '^old mode ' -C1 \ | tr '\n' ' ' | sed 's/diff --git/\n&/g' \ | sed -r 's|^diff --git a/([^ ]*) b/([^ ]*) old mode 100([0-9]*) new mode 100([0-9]*)|chmod \3 ./\1|' \ | bash The first line finds all of the file-permission changes in the commit. The second line squashes some newlines to get one line per file. This line is in the format: diff --git a/FILE b/FILE old mode OLDMODE new mode NEWMODE The third line extracts the values from those lines and transforms the line into: chmod FILE ./OLDMODE The fourth line (obviously) just executes the output. --- libre/filesystem/PKGBUILD | 0 libre/filesystem/crypttab | 0 libre/filesystem/filesystem.install | 0 libre/filesystem/fstab | 0 libre/filesystem/group | 0 libre/filesystem/gshadow | 0 libre/filesystem/host.conf | 0 libre/filesystem/hosts | 0 libre/filesystem/issue | 0 libre/filesystem/ld.so.conf | 0 libre/filesystem/modprobe.d.usb-load-ehci-first | 0 libre/filesystem/motd | 0 libre/filesystem/nsswitch.conf | 0 libre/filesystem/os-release | 0 libre/filesystem/passwd | 0 libre/filesystem/profile | 0 libre/filesystem/resolv.conf | 0 libre/filesystem/securetty | 0 libre/filesystem/shadow | 0 libre/filesystem/shells | 0 20 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 libre/filesystem/PKGBUILD mode change 100755 => 100644 libre/filesystem/crypttab mode change 100755 => 100644 libre/filesystem/filesystem.install mode change 100755 => 100644 libre/filesystem/fstab mode change 100755 => 100644 libre/filesystem/group mode change 100755 => 100644 libre/filesystem/gshadow mode change 100755 => 100644 libre/filesystem/host.conf mode change 100755 => 100644 libre/filesystem/hosts mode change 100755 => 100644 libre/filesystem/issue mode change 100755 => 100644 libre/filesystem/ld.so.conf mode change 100755 => 100644 libre/filesystem/modprobe.d.usb-load-ehci-first mode change 100755 => 100644 libre/filesystem/motd mode change 100755 => 100644 libre/filesystem/nsswitch.conf mode change 100755 => 100644 libre/filesystem/os-release mode change 100755 => 100644 libre/filesystem/passwd mode change 100755 => 100644 libre/filesystem/profile mode change 100755 => 100644 libre/filesystem/resolv.conf mode change 100755 => 100644 libre/filesystem/securetty mode change 100755 => 100644 libre/filesystem/shadow mode change 100755 => 100644 libre/filesystem/shells (limited to 'libre/filesystem') diff --git a/libre/filesystem/PKGBUILD b/libre/filesystem/PKGBUILD old mode 100755 new mode 100644 diff --git a/libre/filesystem/crypttab b/libre/filesystem/crypttab old mode 100755 new mode 100644 diff --git a/libre/filesystem/filesystem.install b/libre/filesystem/filesystem.install old mode 100755 new mode 100644 diff --git a/libre/filesystem/fstab b/libre/filesystem/fstab old mode 100755 new mode 100644 diff --git a/libre/filesystem/group b/libre/filesystem/group old mode 100755 new mode 100644 diff --git a/libre/filesystem/gshadow b/libre/filesystem/gshadow old mode 100755 new mode 100644 diff --git a/libre/filesystem/host.conf b/libre/filesystem/host.conf old mode 100755 new mode 100644 diff --git a/libre/filesystem/hosts b/libre/filesystem/hosts old mode 100755 new mode 100644 diff --git a/libre/filesystem/issue b/libre/filesystem/issue old mode 100755 new mode 100644 diff --git a/libre/filesystem/ld.so.conf b/libre/filesystem/ld.so.conf old mode 100755 new mode 100644 diff --git a/libre/filesystem/modprobe.d.usb-load-ehci-first b/libre/filesystem/modprobe.d.usb-load-ehci-first old mode 100755 new mode 100644 diff --git a/libre/filesystem/motd b/libre/filesystem/motd old mode 100755 new mode 100644 diff --git a/libre/filesystem/nsswitch.conf b/libre/filesystem/nsswitch.conf old mode 100755 new mode 100644 diff --git a/libre/filesystem/os-release b/libre/filesystem/os-release old mode 100755 new mode 100644 diff --git a/libre/filesystem/passwd b/libre/filesystem/passwd old mode 100755 new mode 100644 diff --git a/libre/filesystem/profile b/libre/filesystem/profile old mode 100755 new mode 100644 diff --git a/libre/filesystem/resolv.conf b/libre/filesystem/resolv.conf old mode 100755 new mode 100644 diff --git a/libre/filesystem/securetty b/libre/filesystem/securetty old mode 100755 new mode 100644 diff --git a/libre/filesystem/shadow b/libre/filesystem/shadow old mode 100755 new mode 100644 diff --git a/libre/filesystem/shells b/libre/filesystem/shells old mode 100755 new mode 100644 -- cgit v1.2.3-2-g168b