Project

General

Profile

Actions

Bug #5301

closed

System Patches - fails to set permissions from a 'new file mode' line in a git diff

Added by David Wood over 8 years ago. Updated over 8 years ago.

Status:
Needs Patch
Priority:
Normal
Assignee:
-
Category:
System Patches
Target version:
-
Start date:
10/13/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

System Patches doesn't handle 'new file mode' lines in a git diff, for example:

diff --git a/usr/local/sbin/ppp-ipv6 b/usr/local/sbin/ppp-ipv6
new file mode 100755
index 0000000..a05a4c2
--- /dev/null
+++ b/usr/local/sbin/ppp-ipv6
@@ -0,0 +1,123 @@
[snipped]

A command line chmod 755 was required to make the new script executable.

Depending on your point of view, this is either a bug or a feature request.

Actions #1

Updated by Jim Pingle over 8 years ago

  • Status changed from New to Needs Patch

The package only invokes the patch utility in FreeBSD using the patch contents. It does not parse the patch itself. So if the permissions are not set, it's a deficiency in patch(1) on FreeBSD and needs to be investigated there.

Actions #2

Updated by Kill Bill over 8 years ago

Use the Filer package for this.

Actions

Also available in: Atom PDF