![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package yast2-sudo checked in at Wed Jan 30 17:49:58 CET 2008. -------- --- yast2-sudo/yast2-sudo.changes 2007-04-23 16:39:08.000000000 +0200 +++ yast2-sudo/yast2-sudo.changes 2008-01-30 10:42:46.119726000 +0100 @@ -1,0 +2,14 @@ +Wed Jan 30 10:35:25 CET 2008 - kmachalkova@suse.cz + +- Extended set of valid characters for usernames (esp. \ for winbind + users) +- Escape backslashes in usernames on write (both bnc#353499) +- Added some function key bindings +- 2.16.0 + +------------------------------------------------------------------- +Mon Jan 7 12:16:36 CET 2008 - kmachalkova@suse.cz + +- Merged proofread texts + +------------------------------------------------------------------- Old: ---- yast2-sudo-2.15.3.tar.bz2 New: ---- yast2-sudo-2.16.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-sudo.spec ++++++ --- /var/tmp/diff_new_pack.e13330/_old 2008-01-30 17:49:42.000000000 +0100 +++ /var/tmp/diff_new_pack.e13330/_new 2008-01-30 17:49:42.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package yast2-sudo (Version 2.15.3) +# spec file for package yast2-sudo (Version 2.16.0) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -11,20 +11,20 @@ # norootforbuild Name: yast2-sudo -Version: 2.15.3 +Version: 2.16.0 Release: 1 -License: GNU General Public License (GPL) +License: GPL v2 or later Group: System/YaST BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: yast2-sudo-2.15.3.tar.bz2 -prefix: /usr +Source0: yast2-sudo-2.16.0.tar.bz2 +Prefix: /usr Requires: yast2 yast2-users #ycp::PathComponents Conflicts: yast2-core < 2.13.29 #Sudo icons Conflicts: yast2_theme < 2.13.9 BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite yast2-users -BuildArchitectures: noarch +BuildArch: noarch Summary: YaST2 - sudo configuration %description @@ -38,7 +38,7 @@ Katarina Machalkova <kmachalkova@suse.cz> %prep -%setup -n yast2-sudo-2.15.3 +%setup -n yast2-sudo-2.16.0 %build %{prefix}/bin/y2tool y2autoconf @@ -71,21 +71,28 @@ /usr/share/YaST2/scrconf/sudo.scr /usr/lib/YaST2/servers_non_y2/ag_etc_sudoers %doc %{prefix}/share/doc/packages/yast2-sudo - %changelog -* Mon Apr 23 2007 - kmachalkova@suse.cz +* Wed Jan 30 2008 kmachalkova@suse.cz +- Extended set of valid characters for usernames (esp. \ for winbind + users) +- Escape backslashes in usernames on write (both bnc#353499) +- Added some function key bindings +- 2.16.0 +* Mon Jan 07 2008 kmachalkova@suse.cz +- Merged proofread texts +* Mon Apr 23 2007 kmachalkova@suse.cz - Accept 'ALL' as a valid command alias (#263414) - Make command selection an editable combobox and show available cmnd aliases (+ 'ALL') to the user - Append 'ALL' to the selection of available hosts - 2.15.3 -* Fri Mar 09 2007 - kmachalkova@suse.cz +* Fri Mar 09 2007 kmachalkova@suse.cz - Removed yast2-core and yast2_theme dependency (used Conflicts: tag instead)(#253001) -* Thu Mar 01 2007 - kmachalkova@suse.cz +* Thu Mar 01 2007 kmachalkova@suse.cz - Added checking for root permissions into the module startup - 2.15.2 -* Mon Feb 26 2007 - kmachalkova@suse.cz +* Mon Feb 26 2007 kmachalkova@suse.cz - Added syntax checking of created file (#227397) - Save /etc/sudoers as 0440 (FaTE #300934) - Check if entered command is a valid path or alias (#227397) @@ -96,24 +103,24 @@ - Adjusted some dialog layouts (#245284) - Changed some strings - 2.15.1 -* Fri Jan 05 2007 - kmachalkova@suse.cz +* Fri Jan 05 2007 kmachalkova@suse.cz - Do not remove 'targetpw' and 'ALL ALL=ALL' rule from /etc/sudoers since it makes kdesu defunct (#223719) - Prompt for confirming delete/edit of 'ALL ALL=ALL' rule - 2.15.0 -* Wed Oct 18 2006 - kmachalkova@suse.cz +* Wed Oct 18 2006 kmachalkova@suse.cz - Fixed command table redrawing in user specification dialog - Using real /etc/sudoers instead of testfile in agent (#209388) - Fixed permissions (0640) when creating /etc/sudoers - 2.14.2 -* Thu Aug 24 2006 - ro@suse.de +* Fri Aug 25 2006 ro@suse.de - fix requires yast2-theme -> yast2_theme -* Wed Aug 23 2006 - kmachalkova@suse.cz +* Wed Aug 23 2006 kmachalkova@suse.cz - added error condition handling to agent - added validation of host/netmask - extended command table to contain command parameters - enabled sudo by modifying default config on first write - 2.14.1 -* Thu Jul 13 2006 - kmachalkova@suse.cz +* Thu Jul 13 2006 kmachalkova@suse.cz - initial version - 2.14.0 ++++++ yast2-sudo-2.15.3.tar.bz2 -> yast2-sudo-2.16.0.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/configure.in new/yast2-sudo-2.16.0/configure.in --- old/yast2-sudo-2.15.3/configure.in 2007-04-23 14:50:54.000000000 +0200 +++ new/yast2-sudo-2.16.0/configure.in 2008-01-29 16:30:08.000000000 +0100 @@ -1,6 +1,6 @@ dnl configure.in for yast2-sudo dnl -dnl -- This file is generated by y2autoconf 2.15.0 - DO NOT EDIT! -- +dnl -- This file is generated by y2autoconf 2.15.9 - DO NOT EDIT! -- dnl (edit configure.in.in instead) AC_INIT(yast2-sudo, 2.15.3, http://bugs.opensuse.org/, yast2-sudo) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/Makefile.am new/yast2-sudo-2.16.0/Makefile.am --- old/yast2-sudo-2.15.3/Makefile.am 2007-04-23 14:50:54.000000000 +0200 +++ new/yast2-sudo-2.16.0/Makefile.am 2008-01-29 16:30:08.000000000 +0100 @@ -30,7 +30,7 @@ extra_COPYRIGHT_files = $(if $(HAS_YAST_LICENSE), $(COPYRIGHT_files_yast), $(COPYRIGHT_files_gpl)) -AUTOMAKE_OPTIONS = foreign dist-bzip2 +AUTOMAKE_OPTIONS = foreign dist-bzip2 no-dist-gzip # where devtools instal m4 snippets # argh, executed literally #ACLOCAL_AMFLAGS = -I $(Y2DEVTOOLS_PREFIX)/share/aclocal @@ -210,8 +210,7 @@ # For po/ modules checkpo: - test ! -d $(srcdir)/po || $(MAKE) -C po checkpo -# test ! -d $(srcdir)/po \ -# || { $(MAKE) -C po checkpo && $(MAKE) -C po make-pox; } + test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo +# test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo make-pox # No ./SUBDIRS file found - assuming default: All direct subdirs with Makefile.am SUBDIRS = agents doc src testsuite diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/Makefile.in new/yast2-sudo-2.16.0/Makefile.in --- old/yast2-sudo-2.15.3/Makefile.in 2007-04-23 14:50:59.000000000 +0200 +++ new/yast2-sudo-2.16.0/Makefile.in 2008-01-29 16:30:14.000000000 +0100 @@ -86,8 +86,8 @@ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 GZIP_ENV = --best +DIST_ARCHIVES = $(distdir).tar.bz2 distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ @@ -222,7 +222,7 @@ COPYRIGHT.french COPYRIGHT.german COPYRIGHT.spanish extra_COPYRIGHT_files = $(if $(HAS_YAST_LICENSE), $(COPYRIGHT_files_yast), $(COPYRIGHT_files_gpl)) -AUTOMAKE_OPTIONS = foreign dist-bzip2 +AUTOMAKE_OPTIONS = foreign dist-bzip2 no-dist-gzip # where devtools instal m4 snippets # argh, executed literally #ACLOCAL_AMFLAGS = -I $(Y2DEVTOOLS_PREFIX)/share/aclocal @@ -238,8 +238,7 @@ @CREATE_PKGCONFIG_NOARCH_TRUE@@CREATE_PKGCONFIG_TRUE@pkgconfigdata_DATA = $(RPMNAME).pc @CREATE_PKGCONFIG_NOARCH_FALSE@@CREATE_PKGCONFIG_TRUE@pkgconfig_DATA = $(RPMNAME).pc TAGVERSION = $(Y2TOOL) tagversion -# test ! -d $(srcdir)/po \ -# || { $(MAKE) -C po checkpo && $(MAKE) -C po make-pox; } +# test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo make-pox # No ./SUBDIRS file found - assuming default: All direct subdirs with Makefile.am SUBDIRS = agents doc src testsuite all: all-recursive @@ -518,7 +517,6 @@ $(am__remove_distdir) dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) @@ -852,7 +850,7 @@ # For po/ modules checkpo: - test ! -d $(srcdir)/po || $(MAKE) -C po checkpo + test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/src/complex.ycp new/yast2-sudo-2.16.0/src/complex.ycp --- old/yast2-sudo-2.15.3/src/complex.ycp 2007-04-23 16:37:09.000000000 +0200 +++ new/yast2-sudo-2.16.0/src/complex.ycp 2008-01-29 17:16:39.000000000 +0100 @@ -60,7 +60,7 @@ netmask = ""; Popup::Error( _("A valid netmask is either in dotted quad notation (4 integers in the range 128 - 255 separated by dots) -or single integer in the range 0 - 32" ) ); +or single integer in the range 0 - 32") ); return false; } } @@ -230,7 +230,7 @@ boolean ret = Sudo::Write(); //yes-no popup - an error occured when saving the configuration - if ( !ret && Popup::YesNo(_("Saving sudoers configuration failed. Change the settings?")) ) + if ( !ret && Popup::YesNo(_("Saving sudoer's configuration failed. Change the settings?")) ) return `back; return ret ? `next : `abort; } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/src/dialog-cmnd.ycp new/yast2-sudo-2.16.0/src/dialog-cmnd.ycp --- old/yast2-sudo-2.15.3/src/dialog-cmnd.ycp 2007-04-23 16:03:38.000000000 +0200 +++ new/yast2-sudo-2.16.0/src/dialog-cmnd.ycp 2008-01-30 10:12:36.000000000 +0100 @@ -41,9 +41,9 @@ ), [] ), `HBox( - `PushButton ( `id ( "add_command" ), " " + Label::AddButton() + " "), - `PushButton ( `id ( "edit_command" ), " " + Label::EditButton() + " "), - `PushButton ( `id ( "remove_command" ), " " + Label::RemoveButton() + " ") + `PushButton ( `id ( "add_command" ), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton ( `id ( "edit_command" ), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton ( `id ( "remove_command" ), `opt(`key_F5), " " + Label::RemoveButton() + " ") ) ); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/src/dialog-host.ycp new/yast2-sudo-2.16.0/src/dialog-host.ycp --- old/yast2-sudo-2.15.3/src/dialog-host.ycp 2007-02-26 13:24:38.000000000 +0100 +++ new/yast2-sudo-2.16.0/src/dialog-host.ycp 2008-01-29 18:18:06.000000000 +0100 @@ -41,9 +41,9 @@ `Left(`Label(_("Hostnames or Networks in the Alias"))), `Table(`id("host_alias_members"),`header("Host Names/Networks"),[]), `HBox( - `PushButton ( `id ( "add_host" ), " " + Label::AddButton() + " "), - `PushButton ( `id ( "edit_host" ), " " + Label::EditButton() + " "), - `PushButton ( `id ( "remove_host" ), " " + Label::RemoveButton() + " ") + `PushButton ( `id ( "add_host" ), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton ( `id ( "edit_host" ), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton ( `id ( "remove_host" ), `opt(`key_F5), " " + Label::RemoveButton() + " ") ) ); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/src/dialog-runas.ycp new/yast2-sudo-2.16.0/src/dialog-runas.ycp --- old/yast2-sudo-2.15.3/src/dialog-runas.ycp 2006-08-18 12:15:02.000000000 +0200 +++ new/yast2-sudo-2.16.0/src/dialog-runas.ycp 2008-01-30 10:09:18.000000000 +0100 @@ -56,8 +56,8 @@ `HSquash( `VBox ( `VSpacing(1.1), - `PushButton ( `id ( "add_member" ), `opt ( `hstretch ), " " + Label::AddButton() + " "), - `PushButton ( `id ( "remove_member" ), `opt ( `hstretch ), " " + Label::RemoveButton() + " "), + `PushButton ( `id ( "add_member" ), `opt ( `hstretch, `key_F3), " " + Label::AddButton() + " "), + `PushButton ( `id ( "remove_member" ), `opt ( `hstretch , `key_F5), " " + Label::RemoveButton() + " "), `Empty(`opt(`vstretch)) ) ) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/src/dialog-spec.ycp new/yast2-sudo-2.16.0/src/dialog-spec.ycp --- old/yast2-sudo-2.15.3/src/dialog-spec.ycp 2007-04-23 16:04:19.000000000 +0200 +++ new/yast2-sudo-2.16.0/src/dialog-spec.ycp 2008-01-30 10:26:31.000000000 +0100 @@ -30,10 +30,10 @@ list <string> run_as = (list <string>) merge(Sudo::all_users, Sudo::GetAliasNames("run_as")); if (what == "Add") { - caption = _("New User Specification"); + caption = _("New Sudo Rule"); //Setting default values } else if (what == "Edit") { - caption = _("Existing User Specification"); + caption = _("Existing Sudo Rule "); spec = Sudo::GetUserSpecMember(current_spec_idx); commands = spec["commands"]:[]; } @@ -56,16 +56,16 @@ ), `Table(`id("commands"),`header(_("Command"), _("Parameters")),[]), `HBox( - `PushButton ( `id ( "command_add" ), " " + Label::AddButton() + " "), - `PushButton ( `id ( "command_edit" ), " " + Label::EditButton() + " "), - `PushButton ( `id ( "command_remove" ), " " + Label::RemoveButton() + " ") + `PushButton ( `id ( "command_add" ), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton ( `id ( "command_edit" ), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton ( `id ( "command_remove" ), `opt(`key_F5), " " + Label::RemoveButton() + " ") ) ); Wizard::SetContentsButtons(caption, contents,HELPS["spec_single"]:"",Label::BackButton(), Label::OKButton()); - UI::ChangeWidget(`id("user_name"),`ValidChars, "_%-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"); - UI::ChangeWidget(`id("run_as"),`ValidChars, "_%-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"); + UI::ChangeWidget(`id("user_name"),`ValidChars, Sudo::ValidCharsUsername); + UI::ChangeWidget(`id("run_as"),`ValidChars, Sudo::ValidCharsUsername); //initialize UI UI::ChangeWidget(`id("user_name"),`Value, spec["user"]:""); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/src/dialogs.ycp new/yast2-sudo-2.16.0/src/dialogs.ycp --- old/yast2-sudo-2.15.3/src/dialogs.ycp 2007-02-26 14:18:09.000000000 +0100 +++ new/yast2-sudo-2.16.0/src/dialogs.ycp 2008-01-30 10:25:12.000000000 +0100 @@ -99,7 +99,9 @@ boolean confirm_delete = true; if(Sudo::SearchUserSpec("host",current_alias_name)) { - if (!Popup::ContinueCancel (sformat(_("Host alias %1 is being used in one of user specifications.\nDeleting it may result in inconsistent sudo configuration file. Really delete it ?"), current_alias_name))) + if (!Popup::ContinueCancel (sformat(_("Host alias %1 is being used in one of sudo rules. +Deleting it may result in an inconsistent sudo configuration file. Really delete it ? +"), current_alias_name))) confirm_delete = false; } @@ -141,7 +143,9 @@ boolean confirm_delete = true; if(Sudo::SearchUserSpec("user",current_alias_name)) { - if ( !Popup::ContinueCancel (sformat(_("User alias %1 is being used in one of user specifications.\nDeleting it may result in inconsistent sudo configuration file. Really delete it ?"), current_alias_name))) + if ( !Popup::ContinueCancel (sformat(_("User alias %1 is being used in one of sudo rules . +Deleting it may result in an inconsistent sudo configuration file. Really delete it ? +"), current_alias_name))) confirm_delete = false; } @@ -182,7 +186,9 @@ boolean confirm_delete = true; if(Sudo::SearchUserSpec("run_as","(" + current_alias_name + ")")) { - if (!Popup::ContinueCancel (sformat(_("RunAs alias %1 is being used in one of user specifications.\nDeleting it may result in inconsistent sudo configuration file. Really delete it ?"), current_alias_name))) + if (!Popup::ContinueCancel (sformat(_("RunAs alias %1 is being used in one of sudo rules. +Deleting it may result in an inconsistent sudo configuration file. Really delete it ? +"), current_alias_name))) confirm_delete = false; } @@ -225,7 +231,9 @@ boolean confirm_delete = true; if(Sudo::SearchUserSpec("commands",current_alias_name)) { - if (!Popup::ContinueCancel (sformat(_("Command alias %1 is being used in one of user specifications.\nDeleting it may result in inconsistent sudo configuration file. Really delete it ?"), current_alias_name))) + if (!Popup::ContinueCancel (sformat(_("Command alias %1 is being used in one of sudo rules. +Deleting it may result in an inconsistent sudo configuration file. Really delete it ? +"), current_alias_name))) confirm_delete = false; } @@ -308,13 +316,13 @@ ), [] ), `HBox ( - `PushButton(`id("add_spec")," " + Label::AddButton() + " "), - `PushButton(`id("edit_spec")," " + Label::EditButton() + " "), - `PushButton(`id("delete_spec")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_spec"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_spec"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_spec"),`opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), "caption" : sudo_caption + ": " + _("Rules for sudo"), - "tree_item_label" : _("User Specification"), + "tree_item_label" : _("Rules for sudo "), "widget_names" : ["UserSpecifications"], ], "user_aliases" : $[ @@ -327,9 +335,9 @@ ), [] ), `HBox ( - `PushButton(`id("add_user_alias")," " + Label::AddButton() + " "), - `PushButton(`id("edit_user_alias")," " + Label::EditButton() + " "), - `PushButton(`id("delete_user_alias")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_user_alias"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_user_alias"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_user_alias"), `opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), @@ -347,9 +355,9 @@ ), [] ), `HBox ( - `PushButton(`id("add_runas_alias")," " + Label::AddButton() + " "), - `PushButton(`id("edit_runas_alias")," " + Label::EditButton() + " "), - `PushButton(`id("delete_runas_alias")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_runas_alias"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_runas_alias"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_runas_alias"), `opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), @@ -367,9 +375,9 @@ ), [] ), `HBox ( - `PushButton(`id("add_host_alias")," " + Label::AddButton() + " "), - `PushButton(`id("edit_host_alias")," " + Label::EditButton() + " "), - `PushButton(`id("delete_host_alias")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_host_alias"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_host_alias"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_host_alias"), `opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), @@ -387,9 +395,9 @@ ), [] ), `HBox ( - `PushButton(`id("add_command_alias")," " + Label::AddButton() + " "), - `PushButton(`id("edit_command_alias")," " + Label::EditButton() + " "), - `PushButton(`id("delete_command_alias")," " + Label::DeleteButton() + " ") + `PushButton(`id("add_command_alias"), `opt(`key_F3), " " + Label::AddButton() + " "), + `PushButton(`id("edit_command_alias"), `opt(`key_F4), " " + Label::EditButton() + " "), + `PushButton(`id("delete_command_alias"), `opt(`key_F5), " " + Label::DeleteButton() + " ") ) ), @@ -403,12 +411,13 @@ list <string> tree_dialogs = ["user_specs", "user_aliases", "runas_aliases", "host_aliases", "cmnd_aliases"]; + return DialogTree::ShowAndRun ($[ "ids_order" : tree_dialogs, "initial_screen" : initial_screen, "screens" : tabs, "widget_descr" : widgets_handling, - "back_button" : "", + "back_button" : Label::BackButton(), "abort_button" : Label::AbortButton(), "next_button" : Label::FinishButton(), "functions" : functions, diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/src/dialog-user.ycp new/yast2-sudo-2.16.0/src/dialog-user.ycp --- old/yast2-sudo-2.15.3/src/dialog-user.ycp 2006-08-18 12:12:49.000000000 +0200 +++ new/yast2-sudo-2.16.0/src/dialog-user.ycp 2008-01-30 10:19:36.000000000 +0100 @@ -56,8 +56,8 @@ `HSquash( `VBox ( `VSpacing(1.1), - `PushButton ( `id ( "add_member" ), `opt ( `hstretch ), " " + Label::AddButton() + " "), - `PushButton ( `id ( "remove_member" ), `opt ( `hstretch ), " " + Label::RemoveButton() + " "), + `PushButton ( `id ( "add_member" ), `opt ( `hstretch, `key_F3 ), " " + Label::AddButton() + " "), + `PushButton ( `id ( "remove_member" ), `opt ( `hstretch, `key_F5 ), " " + Label::RemoveButton() + " "), `Empty(`opt(`vstretch)) ) ) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/src/helps.ycp new/yast2-sudo-2.16.0/src/helps.ycp --- old/yast2-sudo-2.15.3/src/helps.ycp 2006-08-23 10:51:59.000000000 +0200 +++ new/yast2-sudo-2.16.0/src/helps.ycp 2008-01-30 10:28:39.000000000 +0100 @@ -58,9 +58,9 @@ </p> "), /* User Specification help 1/6 */ - "spec" : _("<p><b><big>User Specification</big></b><br> - User specification basically determines which commands an user may run - on specified hosts (optionally also as what user). Each user specification + "spec" : _("<p><b><big>Rules for sudo</big></b><br> + Rules for sudo basically determine which commands an user may run + on specified hosts (optionally also as what user). Each rule is a tuple consisting of user, host and list of commands, with optional RunAs specification and additional tags. These are summarized in the following table. @@ -85,12 +85,12 @@ </p> ") + /* User Specification help 5/6 */ - _("<p> To add a new specification, click on <b>Add</b> button and fill in appropriate + _("<p> To add a new rule, click on <b>Add</b> button and fill in appropriate entries. User name, hostname and command list must not be empty. </p> ") + /* User Specification help 5/6 */ - _("<p>To edit existing specification, select an entry from the table and click on + _("<p>To edit existing rule, select an entry from the table and click on <b>Edit</b> button. To delete selected entry, click on <b>Delete</b> button. </p> "), diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/src/Sudo.ycp new/yast2-sudo-2.16.0/src/Sudo.ycp --- old/yast2-sudo-2.15.3/src/Sudo.ycp 2007-04-23 13:28:10.000000000 +0200 +++ new/yast2-sudo-2.16.0/src/Sudo.ycp 2008-01-29 17:07:54.000000000 +0100 @@ -35,13 +35,14 @@ module "Sudo"; textdomain "sudo"; +import "Message"; import "Progress"; import "Report"; -import "Summary"; -import "Message"; -import "Service"; import "Popup"; +import "Service"; import "SCR"; +import "String"; +import "Summary"; import "Users"; import "UsersCache"; @@ -63,6 +64,8 @@ modified = true; } +global string ValidCharsUsername = deletechars (String::CGraph (), "'\"") + " "; + map <string, list < list <string> > > settings = $[]; map <string, list<string> > host_aliases = $[]; map <string, list<string> > user_aliases = $[]; @@ -117,7 +120,11 @@ default: { map <string, any> m = $[]; list <string> cmd = []; + + if ( regexpmatch(opt_key, "^.*\\\\.*$")) + opt_key = regexpsub(opt_key, "^(.*)\\\\(.*)$", "\\1\\2"); m["user"] = opt_key; + m["host"] = wrk[1]:""; //match "(.*)" @@ -262,6 +269,8 @@ //Rest foreach(map <string, any> m, user_specs,{ string user = (string) m["user"]:""; + + user = mergestring (splitstring(user, "\\"), "\\\\"); string host = (string) m["host"]:""; string comment = (string) m["comment"]:""; string rest = (string) m["run_as"]:"" + " " + (( (boolean) m["no_passwd"]:false) ? "NOPASSWD: " : "") + mergestring((list <string>)m["commands"]:[],","); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-sudo-2.15.3/VERSION new/yast2-sudo-2.16.0/VERSION --- old/yast2-sudo-2.15.3/VERSION 2007-04-03 14:21:57.000000000 +0200 +++ new/yast2-sudo-2.16.0/VERSION 2008-01-30 10:39:22.000000000 +0100 @@ -1 +1 @@ -2.15.3 +2.16.0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de