diff --git a/shadow-4.0.18.1-bflg.patch b/shadow-4.0.18.1-bflg.patch new file mode 100644 index 0000000..1d23faa --- /dev/null +++ b/shadow-4.0.18.1-bflg.patch @@ -0,0 +1,13 @@ +diff -up shadow-4.0.18.1/src/useradd.c.bflg shadow-4.0.18.1/src/useradd.c +--- shadow-4.0.18.1/src/useradd.c.bflg 2008-04-08 14:50:43.000000000 +0200 ++++ shadow-4.0.18.1/src/useradd.c 2008-04-08 14:50:53.000000000 +0200 +@@ -1051,9 +1051,6 @@ static void process_flags (int argc, cha + long_options, NULL)) != -1) { + switch (c) { + case 'b': +- if (!Dflg) +- usage (); +- + if (!VALID (optarg) + || optarg[0] != '/') { + fprintf (stderr, diff --git a/shadow-utils.spec b/shadow-utils.spec index 59df958..87a7f0c 100644 --- a/shadow-utils.spec +++ b/shadow-utils.spec @@ -5,7 +5,7 @@ Summary: Utilities for managing accounts and shadow password files Name: shadow-utils Version: 4.0.18.1 -Release: 21%{?dist} +Release: 22%{?dist} Epoch: 2 URL: http://shadow.pld.org.pl/ Source0: ftp://ftp.pld.org.pl/software/shadow/shadow-%{version}.tar.bz2 @@ -31,6 +31,7 @@ Patch14: shadow-4.0.18.1-findNewUidOnce.patch Patch15: shadow-4.0.18.1-groupLoop.patch Patch16: shadow-4.0.18.1-mtime.patch Patch17: shadow-4.1.0-segfault.patch +Patch18: shadow-4.0.18.1-bflg.patch License: BSD Group: System Environment/Base @@ -77,6 +78,7 @@ cp %{SOURCE3} lib/nscd.c %patch15 -p1 -b .groupLoop %patch16 -p1 -b .mtime %patch17 -p1 -b .segfault +%patch18 -p1 -b .bflg rm po/*.gmo rm po/stamp-po @@ -218,6 +220,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/faillog.8* %changelog +* Tue Apr 08 2008 Peter Vrabec 2:4.0.18.1-22 +- fix "-b" option (#441460) + * Tue Feb 19 2008 Peter Vrabec 2:4.0.18.1-21 - fix groupmems segmentation fault (#430813)