?PNG
IHDR ? f ??C1 sRGB ?? gAMA ?a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
ChangeLog 0000666 00000061767 15050100034 0006327 0 ustar 00 2010-02-05 Miloslav Trmač
* userhelper.c (set_pam_items): New function.
(passwd, chfn, wrap): Use pam_set_items.
2010-02-04 Miloslav Trmač
* userhelper.c (become_super): Check for failures of the system
calls in addition to verifying the expected results.
(become_normal): Check for failures of the system
calls in addition to verifying the expected results. Call setregid()
as well. Verify the real gid/uid values.
2009-10-05 Miloslav Trmač
* configure.ac: Release 1.102.
* NEWS: Update.
* consolehelper-gtk.8: New file, based on a Debian man page by
Christopher Cramer.
* pam-panel-icon.1: New file.
* Makefile.am (dist_man_MANS): Add consolehelper-gtk.8 and
pam-panel-icon.1.
* usermount.1: Document userformat better.
* consolehelper.8.in (BUGS): Remove text referring to
developer.redhat.com.
2009-09-15 Miloslav Trmač
* configure.ac: Release 1.101.
* NEWS: Update.
* po/LINGUAS: Update.
2009-06-15 Miloslav Trmač
* userinfo.c (create_userinfo_window, on_ok_clicked, main): Port from
libglade to GtkBuilder.
* userinfo.ui: New file, replaces ...
* usermode.glade: ... this.
* Makefile.am (EXTRA_DIST): Remove usermode.glade.
(AM_CFLAGS): Use GTK_CFLAGS instead of LIBGLADE_CFLAGS.
(dist_pkgdata_DATA): Rename from pkgdata_DATA. Ship usermode.ui instead
of usermode.glade
(userinfo_LDADD): Use with GTK_LIBS instead of LIBGLADE_LIBS.
* configure.ac: Remove check for libglade. Update minimum gtk+ version
to 2.12.
* po/POTFILES.in: Replace usermode.glade with usermode.ui.
* Makefile.am (EXTRA_DIST): Remove files that are marked for
distribution using the dist_ prefix.
(dist_bin_SCRIPTS): Rename from bin_SCRIPTS.
(dist_man_MANS): Rename from man_MANS.
(man_MANS): Rename from dist_man_MANS. Update CLEANFILES.
(dist_pixmap_DATA): Rename from pixmap_DATA.
2009-06-14 Miloslav Trmač
* userhelper-wrap.c (userhelper_grab_keyboard)
(userhelper_handle_childout)
* usermount.c (format, create_usermount_window): Use accessor functions
instead or referencing the structure members directly (as detected using
-DGSEAL_ENABLE).
2009-04-14 Miloslav Trmač
* configure.ac: Release 1.100.
* NEWS: Update.
* po/LINGUAS: Update.
* autogen.sh
* Makefile.am (EXTRA_DIST, DISTCLEANFILES): Update for newer intltool.
2008-11-27 Miloslav Trmač
* userhelper-wrap.c (userhelper_handle_childout)
* usermount.c (format, create_usermount_window): Don't use interfaces
deprecated in GTK+ 2.14.
2008-11-11 Miloslav Trmač
* userhelper.c (send_request): Fix printf format mismatch. Make sure
data is not too large.
2008-11-11 Miloslav Trmač
* configure.ac: Release 1.99.
* NEWS: Update.
* userhelper.h: Document request and response formats.
(UH_REQUEST_SIZE_DIGITS): New macro.
(UH_SN_ID): Use a printable character value.
* userhelper.c (send_request, send_request_int): New functions.
(converse_pipe, prompt_pipe): Use send_request and send_request_int.
* userhelper-wrap.c (userhelper_handle_childout): Rename from
userhelper_parse_childout. Receive an already parsed message as
parameters.
(userhelper_read_childout): Handle the updated request format.
2008-10-28 Miloslav Trmač
* configure.ac: Release 1.98.1.
* NEWS: Update.
* po/LINGUAS: Update.
2008-08-03 Miloslav Trmač
* configure.ac: Release 1.98.
* NEWS: Update.
* userhelper-wrap.c (struct response): Remove member user. New memeber
user_label.
(userhelper_parse_childout): Create the "Authenticating as..." label
as soon as the user name is known, not only when creating the dialog
to ask questions. (Also causes the label to be shown in non-modal
dialogs with no prompts.)
* userhelper-wrap.c (userhelper_parse_childout): Left-justify all
messages.
* userhelper-wrap.c (struct response): New member
dialog_response_handler.
(userhelper_dialog_response): New function.
(userhelper_parse_childout): Support non-modal dialogs with no prompts.
Keep resp->table alive across such dialogs. Don't unnecessarily zero
members of resp before freeing it.
* userhelper-wrap.c (debug_msg)
* userhelper.c (debug_msg)
* userinfo.c (debug_msg): New macro. Use it instead of surrounding
debug prints with #ifdef DEBUG_USERHELPER.
2008-05-17 Miloslav Trmač
* userhelper.c (wrap): Remove /usr/X11R6/bin from the default path.
Original patch by Michel Samia .
2008-05-01 Miloslav Trmač
* configure.ac: Rename from configure.in. Version 1.97.
* NEWS: Update.
* userhelper-wrap.c (userhelper_parse_childout): Don't interpret '_'
in prompts as mnemonic character markup.
2008-04-10 Miloslav Trmač
* configure.in: Version 1.96.1.
* NEWS: Update.
2008-03-23 Miloslav Trmač
* po/hu.po: Updated Hungarian translation by Lónyai Gergely
.
2008-02-29 Miloslav Trmač
* configure.in: Version 1.96.
* NEWS: Update.
* userhelper.c (selinux_enabled, get_init_context, setup_selinux_exec)
(setup_selinux_root_exec, setup_selinux_user_exec): Remove.
(wrap): Don't override SELinux contexts of created processes.
(main): Inline the is_selinux_enabled() call now that selinux_enabled
is not used anywhere else.
2008-02-25 Miloslav Trmač
* configure.in: Version 1.95.
* NEWS: Update.
* userhelper.c (wrap): Fix returning the exit code of the child process
if (session).
* README: Add some content.
* userinfo.desktop.in (Icon)
* usermount.desktop.in (Icon)
* userpasswd.desktop.in (Icon): Remove extension from the icon name
to allow non-PNG themes.
* userinfo.desktop.in (Encoding)
* usermount.desktop.in (Encoding)
* userpasswd.desktop.in (Encoding): Remove (the item is obsolete).
2008-02-24 Miloslav Trmač
* userinfo.desktop.in (Categories): Add missing trailing semicolon.
* po/POTFILES.in: Add gsmclient.c. Sort alphabetically.
* Makefile.am (HGTAG): Replace CVSTAG.
(tag, forcetag, archive): Update to use Mercurial.
2008-01-10 Miloslav Trmač
* configure.in: Release 1.94.
* NEWS: Update.
* po/sr@latin.po: Rename from po/sr@Latn.po.
* po/LINGUAS: Update.
* userhelper.8.in: Beautify.
* shvar.c (relative_to, svInclude): New functions.
(svOpenFile): Add support for including other files.
Original patch by Carlo de Wolf .
* userhelper.8.in: Document wrapper configuration file format.
2007-10-16 Miloslav Trmač
* configure.in: Release 1.93.1.
* NEWS: Update.
* po/no.po: Remove (obsoleted by po/nb.po).
* po/LINGUAS: Remove "no".
* userhelper-wrap.c (trap_push, trap_pop): Avoid a warning.
* userhelper-wrap.c: Don't #include .
* configure.in: Don't require libwnck.
* Makefile.am (AM_CFLAGS, userinfo_LDADD, userpasswd_LDADD)
(consolehelper_gtk_LDADD): Don't link with libwnck.
2007-09-29 Miloslav Trmač
* po/LINGUAS: Update.
2007-09-05 Miloslav Trmač
* configure.in: Release 1.93.
* NEWS: Update.
* userhelper-wrap.c (struct response): Remove member ready.
(userhelper_parse_childout): Use prompt_type directly instead of
resp->ready.
* userhelper-wrap.c (userhelper_parse_childout): Only respond with
UH_SYNC_POINT once to an UH_SYNC_POINT with no responses requested,
not after each new message.
2007-06-11 Miloslav Trmač
* configure.in: Release 1.92.
* NEWS: Update.
* userinfo.desktop.in
* usermount.desktop.in
* userpasswd.desktop.in: Add the categories that are added by
(make install) or the Fedora spec file.
* Makefile.am (install-data-local): Don't add categories to desktop
files. Simplify.
* Makefile.am (EXTRA_DIST, man_MANS, dist_man_MANS, CLEANFILES): Fix
distcheck.
* configure.in: Add AM_PROG_CC_C_O.
(BINDIR, SBINDIR, DATADIR, LOCALEDIR, SYSCONFDIR): Remove. These
definitions are expanded at the wrong time and tend to be expanded
incorrectly.
(AC_CONFIG_FILES): Remove consolehelper.8 and userhelper.8.
* Makefile.am (AM_CPPFLAGS, BINDIR_CPPFLAGS, PIXMAPDIR_CPPFLAGS)
(SBINDIR_CPPFLAGS, userhelper_CPPFLAGS, userinfo_CPPFLAGS)
(usermount_CPPFLAGS, userpasswd_CPPFLAGS, consolehelper_CPPFLAGS)
(consolehelper_gtk_CPPFLAGS, pam_panel_icon_CPPFLAGS): New variables.
(consolehelper.8, userhelper.8): New rules.
(AM_CFLAGS): Move -DGETTEXT_PACKAGE to pam_panel_icon_CPPFLAGS.
* userinfo.c (create_userinfo_window): Use PKGDATADIR.
* pam-panel-icon.c (refresh_tray_icon)
* userhelper-wrap.c (userhelper_parse_childout)
* userinfo.c (create_userinfo_window)
* usermount.c (create_usermount_window): Use PIXMAPDIR.
* userhelper-wrap.c (userhelper_parse_childout): Fix a memory leak.
* userhelper.c (wrap, main): Use the locale's charset.
(converse_console): Don't re-set the charset to the locale's charset,
it is now the default.
* userhelper-wrap.c (write_childin_string): New function.
(userhelper_write_childin): Convert written data to the locale's
charset if possible. Simplify and reformat.
(userhelper_runv): Convert data read from the child from the locale's
charset to UTF-8.
* userhelper-wrap.c: Remove unnecessary #includes.
* userinfo.c: Remove unnecessary #includes.
* userhelper-wrap.c (userhelper_parse_childout): Modify to handle only
one line. Exit if the commmand code is invalid.
(userhelper_read_childout): Always read a complete line, not what
partial line happens to be read. Repeat while there are lines left.
(userhelper_runv): Don't assume the communication is in UTF-8. Set the
only expected line terminator. Don't make the channel non-blocking to
make sure a partial line is always read until it is finished.
* userhelper-wrap.c (struct message): Remove typedef.
2007-06-09 Miloslav Trmač
* configure.in: Release 1.91.2.
* NEWS: Update.
2007-06-09 Miloslav Trmac
* userhelper.c (converse_console, converse_pipe): Don't replace
/.*password.*/i by "Password for %s".
(converse_console): Tell the user what user he should authenticate as.
* userhelper-wrap.c (userhelper_parse_childout): Don't initialize
resp->user from guessed data, always keep the UH_USER value. Tell the
user what user he should authenticate as.
2007-04-19 Miloslav Trmac
* configure.in: Release 1.91.1.
* NEWS: Update.
* po/LINGUAS: Note that empty translations are removed.
2007-03-26 Miloslav Trmac
* consolehelper.c: Allow building consolehelper-nox.c without GTK+
headers. Patch by Robert Scheck .
2007-03-19 Miloslav Trmac
* configure.in: Release 1.91.
* NEWS: Update.
2007-03-17 Miloslav Trmac
* userhelper.c (wrap): Preserve values of all environment variables
configured in KEEP_ENV_VARS. Fix one of the memory leaks.
* userhelper.8.in (KEEP_ENV_VARS): Document variable.
* userhelper.c (wrap): Use a single "val" variable instead of
apps_banner, apps_sn, apps_domain, retry, noxoption.
* pam-panel-icon.c (handle_drop_response): Use a static variable for
the constant argv.
* configure.in: Add more warning flags. Fix all "unused parameter"
warnings. Add casts to silence all warnings caused by using char **
for argument lists.
(gccwerror): Process only if using gcc.
* gsmclient.c (gsm_client_get_type): Add a missing initializer.
(replace_one_prop): Don't shadow link ().
* pam-panel-icon.c (child_io_func): Make "message" a const char *.
* userdialogs.c (crate_message_box, create_error_box): Use
const gchar * for input strings.
* userdialogs.h (create_message_box, create_error_box): Update
prototypes.
* userhelper-wrap.c (userhelper_parse_exitstatus). Update codes.create
prototype.
(userhelper_runv, userhelper_run): Use const char * for "path".
* userhelper-wrap.h (userhelper_runv, userhelper_run): Update
prototypes.
* userhelper.c (prompt_pipe): Initialize "error" when returning FALSE.
Remove dead code after an infinite cycle.
(shell_valid): Fix a thinko, change the correct variable when handling
empty shell names.
(wrap): Use const char * for saved environment values.
* usermount.c (format): Rename variable "format" to "fdformat" to avoid
shadowing the function name.
2007-03-14 Miloslav Trmac
* pam-panel-icon.c (drop_menu_response_cb): Workaround a warning about
pointer and integer size mismatch.
* configure.in: Release 1.90.
* NEWS: Update.
* Makefile.am (AM_CFLAGS): Remove redundant -DDATADIR.
* userhelper.c (converse_pipe): Remove a redundant if.
* Makefile.am (AM_CFLAGS, install-data-local, uninstall-local)
(userinfo_LDADD): Clean up.
* userinfo.c (environ): Remove unnecessary declaration.
(create_userinfo_window): Use DATADIR.
(set_new_userinfo): Remove duplicate conditionals.
(main): Use LOCALEDIR. Remove unnecessary gtk_set_locale ().
* userhelper.c (converse_pipe): Handle startup notification data after
UH_FALLBACK.
* userhelper-wrap.c (childout): Make local.
(childout_tag): Initialize to 0.
(struct message, struct response): Move from userhelper-wrap.h.
(struct message): Remove member message, it is an invalid pointer used
only for debugging.
(userhelper_fatal_error): Use a single static function.
(userhelper_parse_exitstatus): Use N_(), make the message list
a constant.
(userhelper_grab_keyboard): Move the #ifndef inside to avoid an #ifndef
at the caller.
(fake_respond_ok): Use the correct prototype.
(userhelper_parse_childout): Use isspace () correctly. Use DATADIR.
Fix a memory leak. Beautify.
(userhelper_child_exited): Update for g_child_watch_add ().
(userhelper_read_chilout): Update for GIOChannel usage.
(userhelper_runv): Use g_io_add_watch () instead of deprecated
gdk_input_add (). Use g_child_watch_add () instead of VteReaper. Only
call sysconf(_SC_OPEN_MAX) once. Add a comment about STDIN_FILENO
validity.
(userhelper_run): Avoid unnecessary string copies.
* userhelper-wrap.h: Remove unnecessary #includes.
(UH_ACTION_AREA): Remove unused macro.
(userhelper_fatal_error): Remove prototype.
* marshal.list
* reaper.c
* reaper.h: Remove.
* Makefile.am (BUILT_SOURCES): Remove.
(EXTRA_DIST): Remove marshal.list.
(userhelper_LDADD): Clean up.
(consolehelper_gtk_SOURCES, userinfo_SOURCES, userpasswd_SOURCES): Drop
reaper.c, reaper.h, marshal.c and marshal.h.
(marshal.c, marshal.h): Remove.
* configure.in (GLIB_GENMARSHAL): Remove.
* consolehelper.c (userhelper_fatal_error)
* userinfo.c (userhelper_fatal_error)
* userpasswd.c (userhelper_fatal_error): Remove.
* Makefile.am (usermount_SOURCES): Add userdialogs.h.
* configure.in (SELINUX_LIBS): Remove unnecessary -lattr.
* pam-panel-icon.c (child_io_func): Use the parameter instead of
a global variable.
* userhelper.c: Remove unnecessary #includes.
(get_init_context): Avoid duplicate strlen() call.
(setup_selinux_exec): Gather common code from
setup_selinux_root_exec () and setup_selinux_user_exec ().
(setup_selinux_root_exec, setup_selinux_user_exec): Transparently
handle !WITH_SELINUX to avoid #ifdefs in the callers.
(fail_exit): Avoid duplicated code.
(read_reply): Don't unnecessarily clean the buffer. Simplify.
(get_pam_string_item): Fix an aliasing violation.
(free_reply): New function.
(converse_pipe): Don't use g_malloc0 () and g_strdup () for strings
that will be free ()'d. Fix memory leaks.
(converse_console): Fix messages allocation. Fix memory leaks.
(gecos_parse): Fix comment. Simplify.
(gecos_size): Use size_t.
(gecos_assemble): Use size_t.
(gecos_free): New function.
(shell_valid): Simplify.
(get_invoking_user): Fix comment.
(get_user_for_auth): Don't use free () where g_free () should be used.
Fix a memory leak.
(chfn): Fix a debug message. Fix memory leaks.
(construct_cmdline): Use g_strjoinv ().
(wrap): Don't allocate copies of data for setenv (). Use intmax_t for
uid_t output. Use g_strconcat () instead of g_strdup_printf (). Fix
some of the memory leaks. Use LOCALEDIR. Use waitpid () instead of
wait4 (), which is not specified by SUSv3.
(main): Use LOCALEDIR. Fix a memory leak.
* usermount.c (build_mountinfo_list): Make dev a char *, it is passed
to free ().
* pam-panel-icon.c (main, refresh_tray_icon): Load the pixbuf when
initializing the status icon, not when starting the program.
(refresh_tray_icon): Only initialize the status icon when it needs to
be visible, saving 312 kB of DRS as reported by ps(1).
* userpasswd.c: Don't #include "userdialogs.h", use
instead.
(main): Use LOCALEDIR. Remove unnecessary gtk_set_locale ().
2007-03-13 Miloslav Trmac
* usermount.c (ACTION_FORMAT, ACTION_MOUNT): Use an enum.
(struct mountinfo): Remove members mount, format, mount_label. All
users updated.
(is_mounted): Replace check_is_mounted (), remove unnecessary checks,
modify to be usable from build_mountinfo_list ().
(build_mountinfo_list): Use libblkid for LABEL= and UUID= resolution.
Add support for "user" and "users". Simplify and clean up.
(format): Remove copy&pasted info->mounted changes. FIx memory leaks.
(response_callback): Use the correct prototype. Remove info->mounted
changes, rely on changed_callback () instead. Fix a memory leak.
(create_usermount_window): Use DATADIR. Remove local variables
duplicating static variables.
(main) Use LOCALEDIR. Remove unnecessary gtk_set_locale ().
* Makefile.am (usermount_LDADD): Link with libblkid.
* usermount.1: Fix a typo.
* pam-panel-icon.c (RESPONSE_DO_NOTHING): Use a positive number to
avoid conflicts with GTK+.
* Makefile.am (usermount_LDADD, userpasswd_LDADD): Use GTK_LIBS instead
of LIBGLADE_LIBS. Clean up.
* userdialogs.c: Remove unnecessary #include.
* usermount.c: Remove all libglade references.
* usermode.glade (query_box, message_box): Remove unused dialogs.
* usermode.glade1: Remove obsolete file.
2007-03-11 Miloslav Trmac
* userdialogs.c (relay_value, create_query_box_i, create_query_box)
(create_invisible_query_box): Remove, the functions were used only in
test-userdialog.c.
* userdialogs.h: Remove unused includes.
(UD_OK_TEXT, UD_HELP_TEXT, UD_CANCEL_TEXT)
(UD_EXIT_TEXT): Remove unused macros.
(create_query_box, create_invisible_query_box): Remove declarations.
* userhelper-wrap.c
* userinfo.c: #include .
* test-userdialog.c (hello_world): Make static.
(main): Remove create_query_box () and create_invisible_query_box ()
examples.
(hello_world2): Remove.
* test-userdialog.c (main): Use LOCALEDIR. Don't unnecessarily call
gtk_set_locale (). Remove all libglade references.
* Makefile.am (test_userdialog_LDADD): Use GTK_LIBS instead of
LIBGLADE_LIBS. Clean up.
* shutdown.pamd.6x: Remove obsolete configuration.
* Makefile.am (EXTRA_DIST): Remove shutdown.pamd.6x.
* pam-panel-icon.c (main): Use LOCALEDIR.
* pam-panel-icon.c (child_io_source, child_watch_source): New variables.
(running_init_pid): Remove.
(handle_drop_response): Split from drop_menu_response_cb. Don't
duplicate dialog creation code.
(drop_menu_response_cb): Use the correct prototype. All users updated.
(drop_dialog_response_cb): Use the correct prototype. Use
handle_drop_response ().
(drop_menu_items): Make local to handle_popup ().
(child_pid): Make local to launch_checker ().
(handle_button): Split and integrate into callers.
(handle_popup): Use gtk_status_icon_position_menu ().
(refresh_tray_icon): Replace ensure_tray_icon (),
show_unlocked_icon (), show_locked_icon (). Use
gtk_status_icon_set_visible () instead of switching the pixbuf between
NULL and locked_pixbuf.
(child_io_func): Remove dead running_init_pid handling. Don't create
copies of the status messages. Don't poll for the exit status of the
checker.
(child_watch_func): New function.
(launch_checker): Clean up after the previous launch instead of
assuming the callers do it. Watch the checker's exit.
(session_save_callback, session_die_callback): Use the correct
prototype.
* pam-panel-icon.c (tray_icon, drop_dialog): Make a void * to avoid
an aliasing violation in g_object_add_weak_pointer ().
(add_weak_widget_pointer, add_weak_status_icon_pointer): Integrate into
the callers.
* Makefile.am (EXTRA_DIST, INIT_APPS): Remove remaining traces of
pam_timestamp_init.
* pam_timestamp_init.console
* pam_timestamp_init.pamd: Remove.
* pam-panel-icon.c: Remove !HAVE_GTK20 code.
* configure.in (HAVE_GTK20): Assume GTK+ 2.10, remove the conditional.
* Makefile.am (EXTRA_DIST, EGGFILES, EGGDIR, regenerate-build-sources):
Remove eggtrayicon and related files.
(pam_panel_icon_SOURCES): Don't use eggtrayicon.
* egg-marshal.c
* eggmarshalers.list
* eggtrayicon.c
* eggtrayicon.h
* update-from-egg.sh: Remove.
* configure.in: Get pkg-config data of GTK+.
(SELINUX_LIBS): New variable, use separately from LIBS.
* Makefile.am (consolehelper_LDADD, consolehelper_gtk_LDADD)
(pam_panel_icon_LDADD): Use GTK_LIBS instead of LIBGLADE_LIBS. Clean
up.
(pam_panel_icon_SOURCES): Remove unnecessary marshal.c.
(userhelper_LDADD): Use SELINUX_LIBS.
2007-03-10 Miloslav Trmac
* pam-panel-icon.c
* userdialogs.h
* usermount.c: #include instead of #defining _() and
N_() manually.
* userhelper.c: #include
* userhelper.h: Don't #define _(), it is not used in the header.
2007-03-10 Miloslav Trmac
* userhelper.c (pipe_conv_exec_start): Don't run an empty transaction,
it apparently serves no purpose and it may reference PAM data after
freeing it.
* userhelper-wrap.c (userhelper_parse_childout): Add a headline when
changing user password. Simplify the code a bit.
* usermount.c (format): Use a GtkComboBox instead of obsolete
GtkOptionMenu.
* usermode.glade (userinfo.shellmenu): Use a GtkComboBox instead of
obsolete GtkOptionMenu.
* userinfo.c (USERINFO_DATA_NAME): Remove.
(struct UserInfo.shellmenu): Allow freeing the value.
(shell_changed): Replace shell_activate (). Work with GtkComboBox.
Pass userinfo directly instead of using USERINFO_DATA_NAME.
(create_userinfo_window): Use GtkComboBox for shellmenu. Pass userinfo
to shell_changed () and on_ok_clicked () directly instead of using
USERINFO_DATA_NAME.
(on_ok_clicked): Pass userinfo directly instead of using
USERINFO_DATA_NAME.
2007-03-09 Miloslav Trmac
* userhelper.c (wrap): Disable exit status interpretation by the parent
when the GUI mode is disabled.
* configure.in: Release 1.89.
* NEWS: Update.
* glade.strings.h: Remove, intltool handles glade files directly.
* po/POTFILES.in: Don't use glade.strings.h
* Makefile.am (EXTRA_DIST): Don't ship mkinstalldirs and usermode.spec.
Update intltool script location.
* usermode.spec: Remove to avoid divergence from Fedora CVS.
* configure.in: Replace obsolete macros. Use AC_MSG_CHECKING instead
of custom AC_MSG_RESULT usage. Quote all m4 macro invocations
and shell variable expansions where necessary.
(AC_INIT): Move the main version number here from usermode.spec.
(AM_INIT_AUTOMAKE): Use dist-bzip2, Wall.
(PAM_LIBS): Don't pull in -ldl unnecessarily.
(ALL_LINGUAS): Move ...
* po/LINGUAS: ... here, add missing languages.
* autogen.sh: Don't use rpm's opt flags by default. Update for
AC_CONFIG_AUX_DIR. Run autotools in the correct order, and with all
warnings enabled. Don't run configure automatically, only suggest
its usage.
* Makefile.am (VERSION, RELEASE): Remove, rely on configure to set a
value.
(CVSTAG): Use only $(VERSION). Use '_' instead of '-' for '.'.
(distdir): Remove duplicate definition.
(BUILT_SOURCES): New variable.
(reaper.c): Remove rule, it breaks compilation with separate build dir.
(tag, forcetag, archive): Handle compilation with separate build dir.
(archive): Update for new autogen.sh.
* userhelper-wrap.c (userhelper_run): Don't unnecessary clear the
memory before overwriting it. Fix a memory leak.
* userhelper-wrap.c (userhelper_runv): Use "char **", to be consistent
with main () and execve (). All callers updated.
* userhelper-wrap.h (userhelper_runv): Update prototype.
* reaper.c (vte_reaper_channel_destroyed):
* userhelper.c (fail_exit, passwd, chfn): Use G_GNUC_NORETURN.
* consolehelper.c (main): Use LOCALEDIR. Remove unnecessary call to
gtk_set_locale (). Beautify a bit.
* autogen.sh: Remove unnecessary libtoolize call. Allow symbolic link
usage. Simplify config.cache removal.
* userhelper.c (pipe_conv_wait_for_sync): New function.
(pipe_conv_exec_start, pipe_conv_exec_fail): Wait until the parent's
status changes.
(wrap): Handle pipe_conv_exec_start () failures. Preserve exit status
of processes run in their own session.
* userhelper-wrap.c (userhelper_parse_childout): Acknowledge
a transaction containing UH_EXEC_START and UH_EXEC_FAILED with
UH_SYNC_POINT like any other transaction.
2007-03-08 Miloslav Trmac
* userhelper-wrap.c (child_exit_status): New variable.
(userhelper_parse_exitstatus): Save the child's exit status.
(userhelper_runv): Return the child's exit status.
* userhelper-wrap.h (userhelper_runv): Update prototype.
* consolehelper.c (main): Pass the child's exit status to the parent
process.
README 0000666 00000001207 15050100034 0005414 0 ustar 00 About
=====
usermode contains the userhelper program, which can be used to allow configured
programs to be run with superuser privileges by ordinary users, and several
graphical tools for users:
* userinfo allows users to change their finger information.
* usermount lets users mount, unmount, and format filesystems.
* userpasswd allows users to change their passwords.
New releases will be available at https://fedorahosted.org/usermode/ .
Bugs
====
Please consider reporting the bug to your distribution's bug tracking system.
Otherwise, report bugs at https://fedorahosted.org/usermode/ . Bug reports
with patches are especially welcome.
NEWS 0000666 00000003671 15050100034 0005242 0 ustar 00 1.102:
* Add more man pages for consolehelper-gtk and pam-panel-icon.
* Minor fixes in other man pages.
* Update translations.
1.101
* Use GtkBuilder instead of libglade.
* Avoid some obsolete GTK+ interfaces.
* Update translations.
1.100
* Don't use interfaces deprecated in GTK+ 2.14.
1.99
* Support multi-line prompts.
1.98.1
* Update translations
1.98
* Support dialogs with no text entries.
* Left-justify prompts.
* Remove /usr/X11R6/bin from default path.
1.97
* Fix display of '_' in prompts.
1.96.1
* Update translations
1.96
* Remove code that overrides SELinux contexts of processes started by
userhelper.
1.95
* New home page at https://fedoraproject.org/usermode/ .
* Correctly preserve exit code when SESSION=yes
* Fix minor errors in the .desktop files
1.94
* Add support for including files from wrapper configuration files. Original
patch by Carlo de Wolf .
1.93.1
* Allow building with startup notification support without libwnck
* Update translations
1.93
* Fix handling of PAM conversations with no questions
1.92
* Fix userhelper hangs in non-UTF8 locales.
* Fix unexpanded {prefix} strings embedded in executables if some directory
variables were not explicitly passed to configure.
* Add menu categories to desktop files
* Minor clean-ups and optimizations.
1.91.2
* Show the user we're authenticating as in an i18n-safe way.
1.91.1
* Update translations
1.91
* Preserve environment variables in consolehelper specified in the service
config file.
* Fix handling of empty pw_shell.
* Minor clean-ups and optimizations.
1.90
* Support LABEL= and UUID= in usermount and userformat.
* Fix an use of PAM data after free.
* Add a dialog caption when changing user password.
* Use less memory in pam-panel-icon until the icon is actually displayed.
* Don't use deprecated GTK+ widgets.
* Other minor bug fixes, clean-ups and optimizations.
1.89
* Preserve the exit status of processes executed by consolehelper.
COPYING 0000666 00000043122 15050100034 0005571 0 ustar 00 GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.