fix "-b" option

This commit is contained in:
Peter Vrabec 2008-04-08 12:54:30 +00:00
parent 7cca6914eb
commit c31e17879f
2 changed files with 19 additions and 1 deletions

View file

@ -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,

View file

@ -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 <pvrabec@redhat.com> 2:4.0.18.1-22
- fix "-b" option (#441460)
* Tue Feb 19 2008 Peter Vrabec <pvrabec@redhat.com> 2:4.0.18.1-21
- fix groupmems segmentation fault (#430813)