[arch-commits] Commit in cifs-utils/repos (6 files)

2013-03-27 Thread Tobias Powalowski
Date: Wednesday, March 27, 2013 @ 17:31:46
  Author: tpowa
Revision: 180876

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  cifs-utils/repos/testing-i686/
  cifs-utils/repos/testing-i686/PKGBUILD
(from rev 180875, cifs-utils/trunk/PKGBUILD)
  cifs-utils/repos/testing-i686/fix-5.9-credentials.patch
(from rev 180875, cifs-utils/trunk/fix-5.9-credentials.patch)
  cifs-utils/repos/testing-x86_64/
  cifs-utils/repos/testing-x86_64/PKGBUILD
(from rev 180875, cifs-utils/trunk/PKGBUILD)
  cifs-utils/repos/testing-x86_64/fix-5.9-credentials.patch
(from rev 180875, cifs-utils/trunk/fix-5.9-credentials.patch)

--+
 testing-i686/PKGBUILD|   27 +++
 testing-i686/fix-5.9-credentials.patch   |   16 
 testing-x86_64/PKGBUILD  |   27 +++
 testing-x86_64/fix-5.9-credentials.patch |   16 
 4 files changed, 86 insertions(+)

Copied: cifs-utils/repos/testing-i686/PKGBUILD (from rev 180875, 
cifs-utils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2013-03-27 16:31:46 UTC (rev 180876)
@@ -0,0 +1,27 @@
+# $Id$
+# Maintainer: Tobias Powalowski tp...@archlinux.org
+pkgname=cifs-utils
+pkgver=6.0
+pkgrel=1
+pkgdesc=CIFS filesystem user-space tools
+arch=(i686 x86_64)
+url=http://wiki.samba.org/index.php/LinuxCIFS_utils;
+license=('GPL')
+depends=('libcap-ng' 'keyutils' 'krb5' 'talloc' 'libwbclient')
+source=(ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/$pkgname-$pkgver.tar.bz2)
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  # systemd support is broken in mount.cifs
+  # https://bugs.archlinux.org/task/30958
+  ./configure --prefix=/usr --disable-systemd
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir ROOTSBINDIR=/usr/bin install
+  # set mount.cifs uid, to enable none root mounting form fstab
+  chmod +s $pkgdir/usr/bin/mount.cifs
+}
+md5sums=('371e007a201be90c16497cd9bd5e2553')

Copied: cifs-utils/repos/testing-i686/fix-5.9-credentials.patch (from rev 
180875, cifs-utils/trunk/fix-5.9-credentials.patch)
===
--- testing-i686/fix-5.9-credentials.patch  (rev 0)
+++ testing-i686/fix-5.9-credentials.patch  2013-03-27 16:31:46 UTC (rev 
180876)
@@ -0,0 +1,16 @@
+X-Git-Url: 
https://git.samba.org/?p=cifs-utils.git;a=blobdiff_plain;f=mount.cifs.c;h=40b77e92e3f734c606f522ccf279a0508ad64eab;hp=c7c3055cb890764937193b1d50d1f0fb7ae18826;hb=1a01f7c4b90695211d12291d7a24bec05b1f2922;hpb=739289ad3ce915e1ee2705ecd7ac4e907cd91405
+
+diff --git a/mount.cifs.c b/mount.cifs.c
+index c7c3055..40b77e9 100644
+--- a/mount.cifs.c
 b/mount.cifs.c
+@@ -581,7 +581,8 @@ static int open_cred_file(char *file_name,
+   switch (parse_cred_line(line_buf + i, temp_val)) {
+   case CRED_USER:
+   strlcpy(parsed_info-username, temp_val,
+-  sizeof(parsed_info-domain));
++  sizeof(parsed_info-username));
++  parsed_info-got_user = 1;
+   break;
+   case CRED_PASS:
+   i = set_password(parsed_info, temp_val);

Copied: cifs-utils/repos/testing-x86_64/PKGBUILD (from rev 180875, 
cifs-utils/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2013-03-27 16:31:46 UTC (rev 180876)
@@ -0,0 +1,27 @@
+# $Id$
+# Maintainer: Tobias Powalowski tp...@archlinux.org
+pkgname=cifs-utils
+pkgver=6.0
+pkgrel=1
+pkgdesc=CIFS filesystem user-space tools
+arch=(i686 x86_64)
+url=http://wiki.samba.org/index.php/LinuxCIFS_utils;
+license=('GPL')
+depends=('libcap-ng' 'keyutils' 'krb5' 'talloc' 'libwbclient')
+source=(ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/$pkgname-$pkgver.tar.bz2)
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  # systemd support is broken in mount.cifs
+  # https://bugs.archlinux.org/task/30958
+  ./configure --prefix=/usr --disable-systemd
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir ROOTSBINDIR=/usr/bin install
+  # set mount.cifs uid, to enable none root mounting form fstab
+  chmod +s $pkgdir/usr/bin/mount.cifs
+}
+md5sums=('371e007a201be90c16497cd9bd5e2553')

Copied: cifs-utils/repos/testing-x86_64/fix-5.9-credentials.patch (from rev 
180875, cifs-utils/trunk/fix-5.9-credentials.patch)
===
--- testing-x86_64/fix-5.9-credentials.patch(rev 0)
+++ testing-x86_64/fix-5.9-credentials.patch2013-03-27 16:31:46 UTC (rev 
180876)
@@ -0,0 +1,16 @@
+X-Git-Url: 

[arch-commits] Commit in cifs-utils/repos (6 files)

2013-01-27 Thread Tobias Powalowski
Date: Sunday, January 27, 2013 @ 13:26:02
  Author: tpowa
Revision: 176097

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  cifs-utils/repos/extra-i686/PKGBUILD
(from rev 176096, cifs-utils/trunk/PKGBUILD)
  cifs-utils/repos/extra-i686/fix-5.9-credentials.patch
(from rev 176096, cifs-utils/trunk/fix-5.9-credentials.patch)
  cifs-utils/repos/extra-x86_64/PKGBUILD
(from rev 176096, cifs-utils/trunk/PKGBUILD)
  cifs-utils/repos/extra-x86_64/fix-5.9-credentials.patch
(from rev 176096, cifs-utils/trunk/fix-5.9-credentials.patch)
Deleted:
  cifs-utils/repos/extra-i686/PKGBUILD
  cifs-utils/repos/extra-x86_64/PKGBUILD

+
 extra-i686/PKGBUILD|   59 ---
 extra-i686/fix-5.9-credentials.patch   |   16 
 extra-x86_64/PKGBUILD  |   59 ---
 extra-x86_64/fix-5.9-credentials.patch |   16 
 4 files changed, 96 insertions(+), 54 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2013-01-27 12:25:40 UTC (rev 176096)
+++ extra-i686/PKGBUILD 2013-01-27 12:26:02 UTC (rev 176097)
@@ -1,27 +0,0 @@
-# $Id$
-# Maintainer: Tobias Powalowski tp...@archlinux.org
-pkgname=cifs-utils
-pkgver=5.8
-pkgrel=1
-pkgdesc=CIFS filesystem user-space tools
-arch=(i686 x86_64)
-url=http://wiki.samba.org/index.php/LinuxCIFS_utils;
-license=('GPL')
-depends=('libcap-ng' 'keyutils' 'krb5' 'talloc' 'libwbclient')
-source=(ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/$pkgname-$pkgver.tar.bz2)
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-  # systemd support is broken in mount.cifs
-  # https://bugs.archlinux.org/task/30958
-  ./configure --prefix=/usr --disable-systemd
-  make
-}
-
-package() {
-  cd $srcdir/$pkgname-$pkgver
-  make DESTDIR=$pkgdir ROOTSBINDIR=/usr/bin install
-  # set mount.cifs uid, to enable none root mounting form fstab
-  chmod +s $pkgdir/usr/bin/mount.cifs
-}
-md5sums=('6aa9c4347780872fefe5823ac06a8ff3')

Copied: cifs-utils/repos/extra-i686/PKGBUILD (from rev 176096, 
cifs-utils/trunk/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2013-01-27 12:26:02 UTC (rev 176097)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Tobias Powalowski tp...@archlinux.org
+pkgname=cifs-utils
+pkgver=5.9
+pkgrel=1
+pkgdesc=CIFS filesystem user-space tools
+arch=(i686 x86_64)
+url=http://wiki.samba.org/index.php/LinuxCIFS_utils;
+license=('GPL')
+depends=('libcap-ng' 'keyutils' 'krb5' 'talloc' 'libwbclient')
+source=(ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/$pkgname-$pkgver.tar.bz2
+fix-5.9-credentials.patch)
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  # fix credentials
+  patch -Np1 -i ../fix-5.9-credentials.patch
+  # systemd support is broken in mount.cifs
+  # https://bugs.archlinux.org/task/30958
+  ./configure --prefix=/usr --disable-systemd
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir ROOTSBINDIR=/usr/bin install
+  # set mount.cifs uid, to enable none root mounting form fstab
+  chmod +s $pkgdir/usr/bin/mount.cifs
+}
+md5sums=('6aa9c4347780872fefe5823ac06a8ff3')
+md5sums=('7164ad6f7963a31fcbffbe4f14a7cfc6'
+ '2550d43af5bb734307cae22a09cd7710')

Copied: cifs-utils/repos/extra-i686/fix-5.9-credentials.patch (from rev 176096, 
cifs-utils/trunk/fix-5.9-credentials.patch)
===
--- extra-i686/fix-5.9-credentials.patch(rev 0)
+++ extra-i686/fix-5.9-credentials.patch2013-01-27 12:26:02 UTC (rev 
176097)
@@ -0,0 +1,16 @@
+X-Git-Url: 
https://git.samba.org/?p=cifs-utils.git;a=blobdiff_plain;f=mount.cifs.c;h=40b77e92e3f734c606f522ccf279a0508ad64eab;hp=c7c3055cb890764937193b1d50d1f0fb7ae18826;hb=1a01f7c4b90695211d12291d7a24bec05b1f2922;hpb=739289ad3ce915e1ee2705ecd7ac4e907cd91405
+
+diff --git a/mount.cifs.c b/mount.cifs.c
+index c7c3055..40b77e9 100644
+--- a/mount.cifs.c
 b/mount.cifs.c
+@@ -581,7 +581,8 @@ static int open_cred_file(char *file_name,
+   switch (parse_cred_line(line_buf + i, temp_val)) {
+   case CRED_USER:
+   strlcpy(parsed_info-username, temp_val,
+-  sizeof(parsed_info-domain));
++  sizeof(parsed_info-username));
++  parsed_info-got_user = 1;
+   break;
+   case CRED_PASS:
+   i = set_password(parsed_info, temp_val);

Deleted: extra-x86_64/PKGBUILD
===
--- extra-x86_64/PKGBUILD   2013-01-27 12:25:40 UTC (rev 176096)
+++ extra-x86_64/PKGBUILD   2013-01-27 12:26:02 UTC (rev 176097)
@@ -1,27 +0,0 @@
-# $Id$
-# Maintainer: Tobias Powalowski tp...@archlinux.org

[arch-commits] Commit in cifs-utils/repos (6 files)

2012-06-11 Thread Tobias Powalowski
Date: Monday, June 11, 2012 @ 09:06:12
  Author: tpowa
Revision: 161430

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  cifs-utils/repos/extra-i686/PKGBUILD
(from rev 161429, cifs-utils/trunk/PKGBUILD)
  cifs-utils/repos/extra-x86_64/PKGBUILD
(from rev 161429, cifs-utils/trunk/PKGBUILD)
Deleted:
  cifs-utils/repos/extra-i686/PKGBUILD
  
cifs-utils/repos/extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch
  cifs-utils/repos/extra-x86_64/PKGBUILD
  
cifs-utils/repos/extra-x86_64/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch

---+
 extra-i686/PKGBUILD   |   54 
+++
 extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch   |   72 
--
 extra-x86_64/PKGBUILD |   54 
+++
 extra-x86_64/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch |   72 
--
 4 files changed, 50 insertions(+), 202 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2012-06-11 13:05:41 UTC (rev 161429)
+++ extra-i686/PKGBUILD 2012-06-11 13:06:12 UTC (rev 161430)
@@ -1,29 +0,0 @@
-# $Id$
-# Maintainer: Tobias Powalowski tp...@archlinux.org
-pkgname=cifs-utils
-pkgver=5.4
-pkgrel=1
-pkgdesc=CIFS filesystem user-space tools
-arch=(i686 x86_64)
-url=http://wiki.samba.org/index.php/LinuxCIFS_utils;
-license=('GPL')
-depends=('libcap-ng' 'keyutils' 'krb5' 'talloc' 'libwbclient')
-source=(ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/$pkgname-$pkgver.tar.bz2
-mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch)
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-   # add fedora build patch
-  patch -Np1 -i ../mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch
-  ./configure --prefix=/usr
-  make
-}
-
-package() {
-  cd $srcdir/$pkgname-$pkgver
-  make DESTDIR=$pkgdir install
-  # set mount.cifs uid, to enable none root mounting form fstab
-  chmod +s $pkgdir/sbin/mount.cifs
-}
-md5sums=('dde98336c833b59777114145cb8f3c64'
- 'b1b0a5a21aedd5421ff6e1e1a8720771')

Copied: cifs-utils/repos/extra-i686/PKGBUILD (from rev 161429, 
cifs-utils/trunk/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2012-06-11 13:06:12 UTC (rev 161430)
@@ -0,0 +1,25 @@
+# $Id$
+# Maintainer: Tobias Powalowski tp...@archlinux.org
+pkgname=cifs-utils
+pkgver=5.5
+pkgrel=1
+pkgdesc=CIFS filesystem user-space tools
+arch=(i686 x86_64)
+url=http://wiki.samba.org/index.php/LinuxCIFS_utils;
+license=('GPL')
+depends=('libcap-ng' 'keyutils' 'krb5' 'talloc' 'libwbclient')
+source=(ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/$pkgname-$pkgver.tar.bz2)
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir ROOTSBINDIR=/usr/bin install
+  # set mount.cifs uid, to enable none root mounting form fstab
+  chmod +s $pkgdir/usr/bin/mount.cifs
+}
+md5sums=('4de6c660ccdb9506d0e2cff4f37b8707')

Deleted: extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch
===
--- extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch 
2012-06-11 13:05:41 UTC (rev 161429)
+++ extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch 
2012-06-11 13:06:12 UTC (rev 161430)
@@ -1,72 +0,0 @@
-From 900875dbda261dd8a9283bdda3c3dbe551fe0f7c Mon Sep 17 00:00:00 2001
-From: Jeff Layton jlay...@samba.org
-Date: Wed, 18 Apr 2012 21:41:05 -0400
-Subject: [PATCH] mount.cifs: fix up some -D_FORTIFY_SOURCE=2 warnings
-
-...and add -D_FORTIFY_SOURCE=2 to the default $CFLAGS.
-
-Signed-off-by: Jeff Layton jlay...@samba.org

- Makefile.am  |2 +-
- mount.cifs.c |   10 ++
- mtab.c   |4 +++-
- 3 files changed, 10 insertions(+), 6 deletions(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index d95142a..05729ca 100644
 a/Makefile.am
-+++ b/Makefile.am
-@@ -1,4 +1,4 @@
--AM_CFLAGS = -Wall -Wextra -Werror
-+AM_CFLAGS = -Wall -Wextra -Werror -D_FORTIFY_SOURCE=2
- ACLOCAL_AMFLAGS = -I aclocal
- 
- root_sbindir = $(ROOTSBINDIR)
-diff --git a/mount.cifs.c b/mount.cifs.c
-index f0b073e..4f1ea40 100644
 a/mount.cifs.c
-+++ b/mount.cifs.c
-@@ -928,9 +928,9 @@ parse_options(const char *data, struct parsed_mount_info 
*parsed_info)
-   }
-   } else {
-   /* domain/username%password */
--  const int max = MAX_DOMAIN_SIZE +
--  MAX_USERNAME_SIZE +
--  MOUNT_PASSWD_SIZE + 2;
-+  const unsigned int max = MAX_DOMAIN_SIZE +
-+

[arch-commits] Commit in cifs-utils/repos (6 files)

2012-05-08 Thread Tobias Powalowski
Date: Tuesday, May 8, 2012 @ 10:32:25
  Author: tpowa
Revision: 158736

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  cifs-utils/repos/extra-i686/PKGBUILD
(from rev 158735, cifs-utils/trunk/PKGBUILD)
  
cifs-utils/repos/extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch
(from rev 158735, 
cifs-utils/trunk/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch)
  cifs-utils/repos/extra-x86_64/PKGBUILD
(from rev 158735, cifs-utils/trunk/PKGBUILD)
  
cifs-utils/repos/extra-x86_64/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch
(from rev 158735, 
cifs-utils/trunk/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch)
Deleted:
  cifs-utils/repos/extra-i686/PKGBUILD
  cifs-utils/repos/extra-x86_64/PKGBUILD

---+
 extra-i686/PKGBUILD   |   54 
---
 extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch   |   72 
++
 extra-x86_64/PKGBUILD |   54 
---
 extra-x86_64/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch |   72 
++
 4 files changed, 202 insertions(+), 50 deletions(-)

Deleted: extra-i686/PKGBUILD
===
--- extra-i686/PKGBUILD 2012-05-08 14:31:58 UTC (rev 158735)
+++ extra-i686/PKGBUILD 2012-05-08 14:32:25 UTC (rev 158736)
@@ -1,25 +0,0 @@
-# $Id$
-# Maintainer: Tobias Powalowski tp...@archlinux.org
-pkgname=cifs-utils
-pkgver=5.3
-pkgrel=2
-pkgdesc=CIFS filesystem user-space tools
-arch=(i686 x86_64)
-url=http://wiki.samba.org/index.php/LinuxCIFS_utils;
-license=('GPL')
-depends=('libcap-ng' 'keyutils' 'krb5' 'talloc' 'libwbclient')
-source=(ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/$pkgname-$pkgver.tar.bz2)
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-  ./configure --prefix=/usr
-  make
-}
-
-package() {
-  cd $srcdir/$pkgname-$pkgver
-  make DESTDIR=$pkgdir install
-  # set mount.cifs uid, to enable none root mounting form fstab
-  chmod +s $pkgdir/sbin/mount.cifs
-}
-md5sums=('e1a428558a96d2d28ccdaacdc47ea0b7')

Copied: cifs-utils/repos/extra-i686/PKGBUILD (from rev 158735, 
cifs-utils/trunk/PKGBUILD)
===
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2012-05-08 14:32:25 UTC (rev 158736)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Tobias Powalowski tp...@archlinux.org
+pkgname=cifs-utils
+pkgver=5.4
+pkgrel=1
+pkgdesc=CIFS filesystem user-space tools
+arch=(i686 x86_64)
+url=http://wiki.samba.org/index.php/LinuxCIFS_utils;
+license=('GPL')
+depends=('libcap-ng' 'keyutils' 'krb5' 'talloc' 'libwbclient')
+source=(ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/$pkgname-$pkgver.tar.bz2
+mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch)
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+   # add fedora build patch
+  patch -Np1 -i ../mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+  # set mount.cifs uid, to enable none root mounting form fstab
+  chmod +s $pkgdir/sbin/mount.cifs
+}
+md5sums=('dde98336c833b59777114145cb8f3c64'
+ 'b1b0a5a21aedd5421ff6e1e1a8720771')

Copied: 
cifs-utils/repos/extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch
 (from rev 158735, 
cifs-utils/trunk/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch)
===
--- extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch 
(rev 0)
+++ extra-i686/mount.cifs-fix-up-some-D_FORTIFY_SOURCE-2-warnings.patch 
2012-05-08 14:32:25 UTC (rev 158736)
@@ -0,0 +1,72 @@
+From 900875dbda261dd8a9283bdda3c3dbe551fe0f7c Mon Sep 17 00:00:00 2001
+From: Jeff Layton jlay...@samba.org
+Date: Wed, 18 Apr 2012 21:41:05 -0400
+Subject: [PATCH] mount.cifs: fix up some -D_FORTIFY_SOURCE=2 warnings
+
+...and add -D_FORTIFY_SOURCE=2 to the default $CFLAGS.
+
+Signed-off-by: Jeff Layton jlay...@samba.org
+---
+ Makefile.am  |2 +-
+ mount.cifs.c |   10 ++
+ mtab.c   |4 +++-
+ 3 files changed, 10 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index d95142a..05729ca 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -1,4 +1,4 @@
+-AM_CFLAGS = -Wall -Wextra -Werror
++AM_CFLAGS = -Wall -Wextra -Werror -D_FORTIFY_SOURCE=2
+ ACLOCAL_AMFLAGS = -I aclocal
+ 
+ root_sbindir = $(ROOTSBINDIR)
+diff --git a/mount.cifs.c b/mount.cifs.c
+index f0b073e..4f1ea40 100644
+--- a/mount.cifs.c
 b/mount.cifs.c
+@@ -928,9 +928,9 @@ parse_options(const char *data, struct parsed_mount_info 
*parsed_info)
+   }
+   } else {
+   /* domain/username%password */
+-