[packages/wget] xdg patch: Ignore 'Operation not permitted' when writing to /dev/null

glen glen at pld-linux.org
Tue Jun 30 14:12:14 CEST 2015


commit 9a092d1065ebba172305628166210b2fe15e2d51
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jun 30 15:11:28 2015 +0300

    xdg patch: Ignore 'Operation not permitted' when writing to /dev/null
    
    14:54:38 grawity> I think I ended up just ignoring all errors from it
    14:54:57 grawity> since xattrs are also not available on /tmp and other tmpfsen

 user.xdg.origin.url.patch | 20 ++++++++++++++++++++
 wget.spec                 |  4 ++--
 2 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/wget.spec b/wget.spec
index 48b44a4..26e2891 100644
--- a/wget.spec
+++ b/wget.spec
@@ -7,7 +7,7 @@
 # Conditional build:
 %bcond_without	tests
 %bcond_with	gnutls	# use GnuTLS (wget default) instead of OpenSSL
-#
+
 Summary:	A utility for retrieving files using the HTTP or FTP protocols
 Summary(es.UTF-8):	Cliente en línea de comando para bajar archivos WWW/FTP con recursión opcional
 Summary(fr.UTF-8):	Un utilitaire pour recuperer des fichiers en utilisant les protocoles HTTP ou FTP
@@ -18,7 +18,7 @@ Summary(uk.UTF-8):	Утиліта для отримання файлів по п
 Summary(zh_CN.UTF-8):	[通讯]功能强大的下载程序,支持断点续传
 Name:		wget
 Version:	1.16.3
-Release:	3
+Release:	4
 License:	GPL v3+ with OpenSSL exception
 Group:		Networking/Utilities
 Source0:	http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz
diff --git a/user.xdg.origin.url.patch b/user.xdg.origin.url.patch
index 4d1296a..18020c4 100644
--- a/user.xdg.origin.url.patch
+++ b/user.xdg.origin.url.patch
@@ -91,3 +91,23 @@ index b1c46c1..72234e9 100644
 2.3.3
 
 
+commit 8a15b84d4be480514c650db1a34cbb2122d6590d
+Author: Mantas Mikulėnas <grawity at gmail.com>
+Date:   Tue Jun 30 14:56:59 2015 +0300
+
+    Ignore 'Operation not permitted' when writing to /dev/null
+
+diff --git a/src/url.c b/src/url.c
+index 30cb86f..cff8683 100644
+--- a/src/url.c
++++ b/src/url.c
+@@ -2242,7 +2242,7 @@ set_xa (const struct url *origin, int fd)
+   res = fsetxattr(fd, XA_ORIGIN, url, strlen(url), 0);
+   if (res != 0)
+     {
+-      if (errno == ENOTSUP)
++      if (errno == ENOTSUP || errno == EPERM)
+         res = 0;
+       else
+         logprintf (LOG_NOTQUIET, "fsetxattr: %s\n", strerror (errno));
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wget.git/commitdiff/9a092d1065ebba172305628166210b2fe15e2d51



More information about the pld-cvs-commit mailing list