unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ntfs-3g: Does it build?
@ 2017-02-18 17:32 Danny Milosavljevic
  2017-02-18 19:51 ` Kei Kebreau
  0 siblings, 1 reply; 5+ messages in thread
From: Danny Milosavljevic @ 2017-02-18 17:32 UTC (permalink / raw)
  To: guix-devel

Hi,

does ntfs-3g build for you using Guix master?

For me, it doesn't - because of a whitespace problem in the patch "ntfs-3g-CVE-2017-0358.patch".

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

* Re: ntfs-3g: Does it build?
  2017-02-18 17:32 ntfs-3g: Does it build? Danny Milosavljevic
@ 2017-02-18 19:51 ` Kei Kebreau
  2017-02-18 22:13   ` Danny Milosavljevic
  0 siblings, 1 reply; 5+ messages in thread
From: Kei Kebreau @ 2017-02-18 19:51 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 467 bytes --]

Danny Milosavljevic <dannym@scratchpost.org> writes:

> Hi,
>
> does ntfs-3g build for you using Guix master?
>
> For me, it doesn't - because of a whitespace problem in the patch
> "ntfs-3g-CVE-2017-0358.patch".

I was the one who created that file. Try this patch. It should fix the
whitespace problem. I suspect the issue was that I removed some spaces
before the tabs in the code part of the patch, thinking that they were
insignificant. Clearly I was mistaken.


[-- Attachment #1.2: 0001-gnu-ntfs-3g-Fix-whitespace-in-patch.patch --]
[-- Type: text/plain, Size: 1873 bytes --]

From fff6fb313073aa9121df8ad75c02b896483f433a Mon Sep 17 00:00:00 2001
From: Kei Kebreau <kei@openmailbox.org>
Date: Sat, 18 Feb 2017 14:47:07 -0500
Subject: [PATCH] gnu: ntfs-3g: Fix whitespace in patch.

* gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch: Fix whitespace.
---
 gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch b/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch
index 6edd676e3..7e5d2a3c9 100644
--- a/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch
+++ b/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch
@@ -6,21 +6,21 @@ diff -ur ntfs-3g.old/src/lowntfs-3g.c ntfs-3g/src/lowntfs-3g.c
 --- ntfs-3g.old/src/lowntfs-3g.c	2017-02-09 15:01:04.074331542 -0500
 +++ ntfs-3g/src/lowntfs-3g.c	2017-02-09 15:06:35.757580937 -0500
 @@ -3827,13 +3827,14 @@
-	struct stat st;
-	pid_t pid;
-	const char *cmd = "/sbin/modprobe";
+ 	struct stat st;
+ 	pid_t pid;
+ 	const char *cmd = "/sbin/modprobe";
 +	char *env = (char*)NULL;
-	struct timespec req = { 0, 100000000 };   /* 100 msec */
-	fuse_fstype fstype;
-        
-	if (!stat(cmd, &st) && !geteuid()) {
-		pid = fork();
-		if (!pid) {
+ 	struct timespec req = { 0, 100000000 };   /* 100 msec */
+ 	fuse_fstype fstype;
+         
+ 	if (!stat(cmd, &st) && !geteuid()) {
+ 		pid = fork();
+ 		if (!pid) {
 -			execl(cmd, cmd, "fuse", NULL);
 +			execle(cmd, cmd, "fuse", NULL, &env);
-			_exit(1);
-		} else if (pid != -1)
-			waitpid(pid, NULL, 0);
+ 			_exit(1);
+ 		} else if (pid != -1)
+ 			waitpid(pid, NULL, 0);
 diff -ur ntfs-3g.old/src/ntfs-3g.c ntfs-3g/src/ntfs-3g.c
 --- ntfs-3g.old/src/ntfs-3g.c	2017-02-09 15:01:04.074331542 -0500
 +++ ntfs-3g/src/ntfs-3g.c	2017-02-09 15:06:26.077252571 -0500
-- 
2.11.1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: ntfs-3g: Does it build?
  2017-02-18 19:51 ` Kei Kebreau
@ 2017-02-18 22:13   ` Danny Milosavljevic
  2017-02-18 23:11     ` Kei Kebreau
  0 siblings, 1 reply; 5+ messages in thread
From: Danny Milosavljevic @ 2017-02-18 22:13 UTC (permalink / raw)
  To: Kei Kebreau; +Cc: guix-devel

Hi Kei,

I think the empty line except for the whitespace is the only important line - see below. The number of spaces is different.

diff --git a/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch b/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch
index 6edd676e3..dfaeca080 100644
--- a/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch
+++ b/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch
@@ -12,7 +12,7 @@ diff -ur ntfs-3g.old/src/lowntfs-3g.c ntfs-3g/src/lowntfs-3g.c
 +      char *env = (char*)NULL;
        struct timespec req = { 0, 100000000 };   /* 100 msec */
        fuse_fstype fstype;
-        
+         
        if (!stat(cmd, &st) && !geteuid()) {
                pid = fork();
                if (!pid) {

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

* Re: ntfs-3g: Does it build?
  2017-02-18 22:13   ` Danny Milosavljevic
@ 2017-02-18 23:11     ` Kei Kebreau
  2017-02-18 23:27       ` Danny Milosavljevic
  0 siblings, 1 reply; 5+ messages in thread
From: Kei Kebreau @ 2017-02-18 23:11 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]

Danny Milosavljevic <dannym@scratchpost.org> writes:

> Hi Kei,
>
> I think the empty line except for the whitespace is the only important line - see below. The number of spaces is different.
>
> diff --git a/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch b/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch
> index 6edd676e3..dfaeca080 100644
> --- a/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch
> +++ b/gnu/packages/patches/ntfs-3g-CVE-2017-0358.patch
> @@ -12,7 +12,7 @@ diff -ur ntfs-3g.old/src/lowntfs-3g.c ntfs-3g/src/lowntfs-3g.c
>  +      char *env = (char*)NULL;
>         struct timespec req = { 0, 100000000 };   /* 100 msec */
>         fuse_fstype fstype;
> -        
> +         
>         if (!stat(cmd, &st) && !geteuid()) {
>                 pid = fork();
>                 if (!pid) {

Indeed. It looks like diff adds an extra space at the beginning of code
lines to leave space for the + and - signs. Applying the patch let
ntfs-3g build again on my side. Was there any change for you using the
patch I just sent?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: ntfs-3g: Does it build?
  2017-02-18 23:11     ` Kei Kebreau
@ 2017-02-18 23:27       ` Danny Milosavljevic
  0 siblings, 0 replies; 5+ messages in thread
From: Danny Milosavljevic @ 2017-02-18 23:27 UTC (permalink / raw)
  To: Kei Kebreau; +Cc: guix-devel

> Was there any change for you using the patch I just sent?

That one also works.

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

end of thread, other threads:[~2017-02-18 23:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-18 17:32 ntfs-3g: Does it build? Danny Milosavljevic
2017-02-18 19:51 ` Kei Kebreau
2017-02-18 22:13   ` Danny Milosavljevic
2017-02-18 23:11     ` Kei Kebreau
2017-02-18 23:27       ` Danny Milosavljevic

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).