A fork of Gnome-control-center with some tweaks
Find a file
Michael Catanzaro 09b94a9b53 user-accounts: Fix definition of MAXNAMELEN
Currently we get MAXNAMELEN from glibc's LOGIN_NAME_MAX, if available,
and sysconf otherwise. But the maximum username length supported by
glibc and the kernel is actually way larger than the maximum length that
actually works in practice. On Linux, anything larger than 32 characters
is not going to fit into utmp, and will therefore be rejected by
useradd. Then gnome-control-center will spit out a confusing error
message dialog.

Let's spare our users from that.

useradd (in shadow-utils) gets its max name size from the following
magic:

 /* Maximum length of usernames */
 #ifdef HAVE_UTMPX_H
 # include <utmpx.h>
 # define USER_NAME_MAX_LENGTH (sizeof (((struct utmpx *)NULL)->ut_user))
 #else
 # include <utmp.h>
 # ifdef HAVE_STRUCT_UTMP_UT_USER
 #  define USER_NAME_MAX_LENGTH (sizeof (((struct utmp *)NULL)->ut_user))
 # else
 #  ifdef HAVE_STRUCT_UTMP_UT_NAME
 #   define USER_NAME_MAX_LENGTH (sizeof (((struct utmp *)NULL)->ut_name))
 #  else
 #   define USER_NAME_MAX_LENGTH 32
 #  endif
 # endif
 #endif

It's more work than necessary. utmpx is standardized by POSIX (it's
actually an XSI extension), whereas utmp is not, so let's just use
utmpx. This ought to work on at least FreeBSD as well. And if any free
operating systems that care about GNOME don't have utmpx yet, no doubt
they'll send patches.

https://bugzilla.gnome.org/show_bug.cgi?id=724193
2018-02-01 09:32:58 -06:00
data/icons build: Remove autotools 2018-01-18 12:20:08 +01:00
gettext/its build: Fix translation context missing from keyboard entries 2018-01-24 20:43:34 +01:00
man build: Remove autotools 2018-01-18 12:20:08 +01:00
panels user-accounts: Fix definition of MAXNAMELEN 2018-02-01 09:32:58 -06:00
po Update Finnish translation 2018-02-01 08:32:10 +00:00
search-provider search-provider: Simplify code by using g_auto* 2018-01-30 12:10:32 -02:00
shell shell: Swap Display and Printers positions 2018-01-30 11:12:41 -02:00
subprojects sound: Update gvc to not require ALSA support 2018-01-26 10:56:12 -02:00
.gitmodules build: Move libgd and gvc modules to subprojects 2018-01-17 19:02:57 -02:00
AUTHORS New and better than ever in a new home 1998-12-08 20:47:55 +00:00
ChangeLog Automatically create the ChangeLog file from VCS history 2009-11-14 15:17:28 +00:00
COPYING build: Update COPYING with new mailing address 2012-08-22 15:33:18 +01:00
gnome-control-center.doap doap: Remove myself from the list of maintainers 2017-08-21 19:07:29 +02:00
MAINTAINERS MAINTAINERS: Point to doap file instead 2017-05-18 17:43:04 +02:00
meson.build background: Remove GdkColor deprecation warnings 2018-02-01 09:11:00 +13:00
meson_options.txt build: Make bluetooth, network and wacom mandatory on linux 2018-01-22 23:06:45 -02:00
meson_post_install.py build: Port to meson build system 2018-01-17 20:09:35 -02:00
NEWS 3.26.0 2017-09-11 19:57:45 +02:00
README README: Update link to how-to submit patches wiki page 2017-02-08 18:33:56 +01:00
update-from-gsd.in build: Port to meson build system 2018-01-17 20:09:35 -02:00
update-from-gsd.sh build: Port to meson build system 2018-01-17 20:09:35 -02:00
update-from-nma.in build: Port to meson build system 2018-01-17 20:09:35 -02:00

GNOME Control Center  
====================

About -

The control center is GNOME's main interface for configuration of various
aspects of your desktop.

Installation -

See the file 'INSTALL'

How to report bugs -

Bugs should be reported to the GNOME bug tracking system under the product
gnome-control-center. It is available at http://bugzilla.gnome.org.

In the report please include the following information -

	Operating system and version
	For Linux, version of the C library
	How to reproduce the bug if possible
	If the bug was a crash, include the exact text that was printed out
	A stacktrace where possible [see below]

How to get a stack trace -

If the crash is reproducible, it is possible to get a stack trace and 
attach it to the bug report. The following steps are used to obtain a 
stack trace -
	
	Run the program in gdb [the GNU debugger] or any other debugger
		ie. gdb gnome-keyboard-properties
	Start the program
		ie. (gdb) run
	Reproduce the crash and the program will exit to the gdb prompt
	Get the back trace
		ie. (gdb) bt full

Once you have the backtrace, copy and paste this either into the 
'Comments' field or attach a file with it included.


Patches -

Patches should be submitted to bugzilla.gnome.org or emailed to the 
gnomecc-list@gnome.org list. If using bugzilla, attach
the patch to a new bug report [or preferably, check to see if there is
already a bug report that corresponds to your patch]. Bug reports 
containing patches should include the 'PATCH' keyword.

See https://wiki.gnome.org/Newcomers/CodeContributionWorkflow for how to
create patches.