[arch-commits] Commit in libnfs/repos (6 files)
Ike Devolder
idevolder at nymeria.archlinux.org
Tue Jun 17 18:47:21 UTC 2014
Date: Tuesday, June 17, 2014 @ 20:47:21
Author: idevolder
Revision: 113309
archrelease: copy trunk to community-i686, community-x86_64
Added:
libnfs/repos/community-i686/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch
(from rev 113308, libnfs/trunk/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch)
libnfs/repos/community-i686/PKGBUILD
(from rev 113308, libnfs/trunk/PKGBUILD)
libnfs/repos/community-x86_64/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch
(from rev 113308, libnfs/trunk/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch)
libnfs/repos/community-x86_64/PKGBUILD
(from rev 113308, libnfs/trunk/PKGBUILD)
Deleted:
libnfs/repos/community-i686/PKGBUILD
libnfs/repos/community-x86_64/PKGBUILD
--------------------------------------------------------------------------------+
/PKGBUILD | 78 ++++++++++
community-i686/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch | 29 +++
community-i686/PKGBUILD | 26 ---
community-x86_64/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch | 29 +++
community-x86_64/PKGBUILD | 26 ---
5 files changed, 136 insertions(+), 52 deletions(-)
Copied: libnfs/repos/community-i686/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch (from rev 113308, libnfs/trunk/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch)
===================================================================
--- community-i686/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch (rev 0)
+++ community-i686/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch 2014-06-17 18:47:21 UTC (rev 113309)
@@ -0,0 +1,29 @@
+From d5f7880641c979b986f6c4d7b6502bd7e768a9ea Mon Sep 17 00:00:00 2001
+From: Arne Redlich <arne.redlich at googlemail.com>
+Date: Sun, 9 Mar 2014 21:55:42 +0100
+Subject: [PATCH] nfs_normalize_path: don't strip trailing slash from "/"
+
+Otherwise end up with a null string which is not permitted (RFC 1813, 3.2;
+the code checks for it right after the now fixed nullification of "/").
+
+Signed-off-by: Arne Redlich <arne.redlich at googlemail.com>
+---
+ lib/libnfs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/libnfs.c b/lib/libnfs.c
+index a237f60..9053ab1 100644
+--- a/lib/libnfs.c
++++ b/lib/libnfs.c
+@@ -994,7 +994,7 @@ static int nfs_normalize_path(struct nfs_context *nfs, char *path)
+
+ /* /$ -> \0 */
+ len = strlen(path);
+- if (len >= 1) {
++ if (len > 1) {
+ if (path[len - 1] == '/') {
+ path[len - 1] = '\0';
+ len--;
+--
+2.0.0
+
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2014-06-17 18:47:04 UTC (rev 113308)
+++ community-i686/PKGBUILD 2014-06-17 18:47:21 UTC (rev 113309)
@@ -1,26 +0,0 @@
-# $Id$
-# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
-
-pkgname=libnfs
-pkgver=1.9.3
-pkgrel=1
-pkgdesc="client library for accessing NFS shares"
-arch=('i686' 'x86_64')
-url="https://github.com/sahlberg/libnfs"
-license=('GPL')
-depends=('glibc')
-source=("https://github.com/sahlberg/$pkgname/archive/$pkgname-$pkgver.tar.gz")
-
-build() {
- cd "$pkgname-$pkgname-$pkgver"
-
- autoreconf -vif
- ./configure --prefix=/usr
- make
-}
-
-package() {
- cd "$pkgname-$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
-}
-sha256sums=('9d1c988065b373ea25e195aedff4c33ca949fee41c61bdb38a26908bb618315a')
Copied: libnfs/repos/community-i686/PKGBUILD (from rev 113308, libnfs/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2014-06-17 18:47:21 UTC (rev 113309)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+
+pkgname=libnfs
+pkgver=1.9.3
+pkgrel=2
+pkgdesc="client library for accessing NFS shares"
+arch=('i686' 'x86_64')
+url="https://github.com/sahlberg/libnfs"
+license=('GPL')
+depends=('glibc')
+source=(
+ "https://github.com/sahlberg/$pkgname/archive/$pkgname-$pkgver.tar.gz"
+ '0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch'
+)
+
+prepare() {
+ cd "$pkgname-$pkgname-$pkgver"
+
+ patch -p1 -i "$srcdir/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch"
+}
+
+build() {
+ cd "$pkgname-$pkgname-$pkgver"
+
+ autoreconf -vif
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+
+sha256sums=(
+ '9d1c988065b373ea25e195aedff4c33ca949fee41c61bdb38a26908bb618315a'
+ '4a84a304a8364b89b90ef6bc43c9190e2ff600fd64fd15e6ecc20ab14eed78a5'
+)
Copied: libnfs/repos/community-x86_64/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch (from rev 113308, libnfs/trunk/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch)
===================================================================
--- community-x86_64/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch (rev 0)
+++ community-x86_64/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch 2014-06-17 18:47:21 UTC (rev 113309)
@@ -0,0 +1,29 @@
+From d5f7880641c979b986f6c4d7b6502bd7e768a9ea Mon Sep 17 00:00:00 2001
+From: Arne Redlich <arne.redlich at googlemail.com>
+Date: Sun, 9 Mar 2014 21:55:42 +0100
+Subject: [PATCH] nfs_normalize_path: don't strip trailing slash from "/"
+
+Otherwise end up with a null string which is not permitted (RFC 1813, 3.2;
+the code checks for it right after the now fixed nullification of "/").
+
+Signed-off-by: Arne Redlich <arne.redlich at googlemail.com>
+---
+ lib/libnfs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/libnfs.c b/lib/libnfs.c
+index a237f60..9053ab1 100644
+--- a/lib/libnfs.c
++++ b/lib/libnfs.c
+@@ -994,7 +994,7 @@ static int nfs_normalize_path(struct nfs_context *nfs, char *path)
+
+ /* /$ -> \0 */
+ len = strlen(path);
+- if (len >= 1) {
++ if (len > 1) {
+ if (path[len - 1] == '/') {
+ path[len - 1] = '\0';
+ len--;
+--
+2.0.0
+
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2014-06-17 18:47:04 UTC (rev 113308)
+++ community-x86_64/PKGBUILD 2014-06-17 18:47:21 UTC (rev 113309)
@@ -1,26 +0,0 @@
-# $Id$
-# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
-
-pkgname=libnfs
-pkgver=1.9.3
-pkgrel=1
-pkgdesc="client library for accessing NFS shares"
-arch=('i686' 'x86_64')
-url="https://github.com/sahlberg/libnfs"
-license=('GPL')
-depends=('glibc')
-source=("https://github.com/sahlberg/$pkgname/archive/$pkgname-$pkgver.tar.gz")
-
-build() {
- cd "$pkgname-$pkgname-$pkgver"
-
- autoreconf -vif
- ./configure --prefix=/usr
- make
-}
-
-package() {
- cd "$pkgname-$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
-}
-sha256sums=('9d1c988065b373ea25e195aedff4c33ca949fee41c61bdb38a26908bb618315a')
Copied: libnfs/repos/community-x86_64/PKGBUILD (from rev 113308, libnfs/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2014-06-17 18:47:21 UTC (rev 113309)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+
+pkgname=libnfs
+pkgver=1.9.3
+pkgrel=2
+pkgdesc="client library for accessing NFS shares"
+arch=('i686' 'x86_64')
+url="https://github.com/sahlberg/libnfs"
+license=('GPL')
+depends=('glibc')
+source=(
+ "https://github.com/sahlberg/$pkgname/archive/$pkgname-$pkgver.tar.gz"
+ '0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch'
+)
+
+prepare() {
+ cd "$pkgname-$pkgname-$pkgver"
+
+ patch -p1 -i "$srcdir/0001-nfs_normalize_path-don-t-strip-trailing-slash-from.patch"
+}
+
+build() {
+ cd "$pkgname-$pkgname-$pkgver"
+
+ autoreconf -vif
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+
+sha256sums=(
+ '9d1c988065b373ea25e195aedff4c33ca949fee41c61bdb38a26908bb618315a'
+ '4a84a304a8364b89b90ef6bc43c9190e2ff600fd64fd15e6ecc20ab14eed78a5'
+)
More information about the arch-commits
mailing list