The Samba-Bugzilla – Attachment 10265 Details for
Bug 10318
samba-tool says "Expiry disabled" instead of "Set to expired"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix bug 10318
0001-samba-tool-fix-reply-when-zero-day-pwd-expiry-is-set.patch (text/plain), 1.30 KB, created by
Björn Jacke
on 2014-09-08 08:54:38 UTC
(
hide
)
Description:
patch to fix bug 10318
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2014-09-08 08:54:38 UTC
Size:
1.30 KB
patch
obsolete
>From 8a420b08be4c97a11aa8c3e79b2713961d203e68 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= <bj@sernet.de> >Date: Mon, 8 Sep 2014 10:53:40 +0200 >Subject: [PATCH] samba-tool: fix reply when zero day pwd expiry is set > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=10318 > >Signed-off-by: Bjoern Jacke <bj@sernet.de> >--- > python/samba/netcmd/user.py | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py >index b98ec34..5106d3a 100644 >--- a/python/samba/netcmd/user.py >+++ b/python/samba/netcmd/user.py >@@ -450,12 +450,12 @@ Example4 shows how to set the account expiration so that it will never expire. > # FIXME: Catch more specific exception > raise CommandError("Failed to set expiry for user '%s': %s" % ( > username or filter, msg)) >- if days: >- self.outf.write("Expiry for user '%s' set to %u days.\n" % ( >- username or filter, days)) >- else: >+ if noexpiry: > self.outf.write("Expiry for user '%s' disabled.\n" % ( > username or filter)) >+ else: >+ self.outf.write("Expiry for user '%s' set to %u days.\n" % ( >+ username or filter, days)) > > > class cmd_user_password(Command): >-- >2.1.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
Actions:
View
Attachments on
bug 10318
: 10265