diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2013-02-10 11:32:41 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2013-02-10 11:32:41 +0100 |
commit | bdf817c3549ba377334deb1161de703579670d62 (patch) | |
tree | c1b80c05c917cda2619e267049978f971bdad169 /core/util-linux | |
parent | df609724f30aaccfb05d9fb73f68e7a37118f2f8 (diff) | |
parent | 1bb2648cde916ac27d3dd75d7b64a4ddc89787b7 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/cdemu-client/PKGBUILD
community/dcron/PKGBUILD
community/freevo/PKGBUILD
community/gmerlin-avdecoder/PKGBUILD
community/hacburn/PKGBUILD
community/htmldoc/PKGBUILD
community/ibus-table/PKGBUILD
community/iksemel/PKGBUILD
community/isomaster/PKGBUILD
community/libmatio/PKGBUILD
community/libtlen/PKGBUILD
community/luarocks/PKGBUILD
community/lxde-common/PKGBUILD
community/multipath-tools/PKGBUILD
community/nvclock/PKGBUILD
community/pam-krb5/PKGBUILD
community/pidgin-musictracker/PKGBUILD
community/pkgfile/PKGBUILD
community/pkgtools/PKGBUILD
community/print-manager/PKGBUILD
community/python-pyro/PKGBUILD
community/python-pyxmpp/PKGBUILD
community/python2-simplejson/PKGBUILD
community/rsnapshot/PKGBUILD
community/setconf/PKGBUILD
community/tagpy/PKGBUILD
community/terminator/PKGBUILD
community/udunits/PKGBUILD
community/vlock/PKGBUILD
community/winefish/PKGBUILD
core/nss-myhostname/PKGBUILD
extra/avfs/PKGBUILD
extra/bmp-musepack/PKGBUILD
extra/bmp-wma/PKGBUILD
extra/bochs/PKGBUILD
extra/botan/PKGBUILD
extra/cdargs/PKGBUILD
extra/cx_freeze/PKGBUILD
extra/dcfldd/PKGBUILD
extra/devilspie/PKGBUILD
extra/emelfm2/PKGBUILD
extra/evilwm/PKGBUILD
extra/fssos-nsvs/PKGBUILD
extra/gimp-dbp/PKGBUILD
extra/gimp-gap/PKGBUILD
extra/gimp-ufraw/PKGBUILD
extra/gmpc/PKGBUILD
extra/gtkpod/PKGBUILD
extra/hercules/PKGBUILD
extra/herqq/PKGBUILD
extra/hydrogen/PKGBUILD
extra/kdegames/PKGBUILD
extra/kradio/PKGBUILD
extra/kshutdown/PKGBUILD
extra/libmusicbrainz4/PKGBUILD
extra/mahjong/PKGBUILD
extra/mcrypt/PKGBUILD
extra/monica/PKGBUILD
extra/mpck/PKGBUILD
extra/mrtg/PKGBUILD
extra/nicotine/PKGBUILD
extra/normalize/PKGBUILD
extra/oprofile/PKGBUILD
extra/perl-event/PKGBUILD
extra/perl-unicode-string/PKGBUILD
extra/pidgin-encryption/PKGBUILD
extra/proftpd/PKGBUILD
extra/pymad/PKGBUILD
extra/qiv/PKGBUILD
extra/quodlibet/PKGBUILD
extra/ratpoison/PKGBUILD
extra/rox/PKGBUILD
extra/scrot/PKGBUILD
extra/stardict/PKGBUILD
extra/terminal/PKGBUILD
extra/usbview/PKGBUILD
extra/xdelta/PKGBUILD
extra/xdelta3/PKGBUILD
extra/xorg-xlsfonts/PKGBUILD
extra/zile/PKGBUILD
mozilla-testing/iceweasel-libre/mozconfig
mozilla-testing/iceweasel-libre/vendor.js
social/tokyocabinet/PKGBUILD
~fauno/notmuch/PKGBUILD
~mtjm/thinkfan/PKGBUILD
~mtjm/zbar/PKGBUILD
Diffstat (limited to 'core/util-linux')
-rw-r--r-- | core/util-linux/hwclock-systz.patch | 96 | ||||
-rw-r--r-- | core/util-linux/su.1 | 230 |
2 files changed, 0 insertions, 326 deletions
diff --git a/core/util-linux/hwclock-systz.patch b/core/util-linux/hwclock-systz.patch deleted file mode 100644 index 79ed1a5f3..000000000 --- a/core/util-linux/hwclock-systz.patch +++ /dev/null @@ -1,96 +0,0 @@ -From 46a8834c2eb9b0c37d92e30d1a262e41306cf36f Mon Sep 17 00:00:00 2001 -From: Tom Gundersen <teg@jklm.no> -Date: Wed, 19 Sep 2012 18:10:34 +0200 -Subject: [PATCH 1/2] hwclock: don't warp the systemtime if it is in UTC - -A sideeffect of 839be2ba6b44fa9dc927f081d547ebadec9de19c is that we now -warp the systemtime according to the timezone, on the first call of ---systz. This is not always the correct thing to do, and causes a -regression for us in Arch Linux. - -This is the correct thing to do if the RTC, and hence the systemtime is -set in localtime. However, if the systemtime is already in UTC we don't -want to touch it when we set the kernel timezone (which we still need to -do as e.g. FAT stores timestamps in localtime). - -An almost identical issue was also fixed in systemd commit -72edcff5db936e54cfc322d9392ec46e2428fd9b. - -Fixes: -Signed-off-by: Tom Gundersen <teg@jklm.no> ---- - sys-utils/hwclock.8 | 11 +++++++---- - sys-utils/hwclock.c | 17 +++++++++++++++-- - 2 files changed, 22 insertions(+), 6 deletions(-) - -diff --git a/sys-utils/hwclock.8 b/sys-utils/hwclock.8 -index 07d9fc0..5c599ad 100644 ---- a/sys-utils/hwclock.8 -+++ b/sys-utils/hwclock.8 -@@ -58,10 +58,12 @@ This is a good option to use in one of the system startup scripts. - Set the Hardware Clock to the current System Time. - .TP - .B \-\-systz --Reset the System Time based on the current timezone. -+Set the kernel's timezone and reset the System Time based on the current timezone. - --Also set the kernel's timezone value to the local timezone --as indicated by the TZ environment variable and/or -+The system time is only reset on the first call after boot. -+ -+The local timezone is taken to be what is -+indicated by the TZ environment variable and/or - .IR /usr/share/zoneinfo , - as - .BR tzset (3) -@@ -74,7 +76,8 @@ This is an alternate option to - .B \-\-hctosys - that does not read the hardware clock, and may be used in system startup - scripts for recent 2.6 kernels where you know the System Time contains --the Hardware Clock time. -+the Hardware Clock time. If the Hardware Clock is already in UTC, it is -+not reset. - .TP - .B \-\-adjust - Add or subtract time from the Hardware Clock to account for systematic -diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c -index 5a4c87e..351ce1f 100644 ---- a/sys-utils/hwclock.c -+++ b/sys-utils/hwclock.c -@@ -772,7 +772,6 @@ static int set_system_clock_timezone(const bool universal, const bool testing) - struct timeval tv; - struct tm *broken; - int minuteswest; -- int rc; - - gettimeofday(&tv, NULL); - if (debug) { -@@ -818,10 +817,24 @@ static int set_system_clock_timezone(const bool universal, const bool testing) - ("Not setting system clock because running in test mode.\n")); - retcode = 0; - } else { -+ const struct timezone tz_utc = { 0, 0 }; - const struct timezone tz = { minuteswest, 0 }; - const struct timeval *tv_null = NULL; -+ int rc = 0; -+ -+ /* The first call to settimeofday after boot will assume the systemtime -+ * is in localtime, and adjust it according to the given timezone to -+ * compensate. If the systemtime is in fact in UTC, then this is wrong -+ * so we first do a dummy call to make sure the time is not shifted. -+ */ -+ if (universal) -+ rc = settimeofday(tv_null, &tz_utc); -+ -+ /* Now we set the real timezone. Due to the above dummy call, this will -+ * only warp the systemtime if the RTC is not in UTC. */ -+ if (!rc) -+ rc = settimeofday(tv_null, &tz); - -- rc = settimeofday(tv_null, &tz); - if (rc) { - if (errno == EPERM) { - warnx(_ --- -1.7.12.1 - diff --git a/core/util-linux/su.1 b/core/util-linux/su.1 deleted file mode 100644 index 59e17314d..000000000 --- a/core/util-linux/su.1 +++ /dev/null @@ -1,230 +0,0 @@ -.TH SU "1" "June 2012" "util-linux" "User Commands" -.SH NAME -su \- run a command with substitute user and group ID -.SH SYNOPSIS -.B su -[options...] [\-] [user [args...]] -.SH DESCRIPTION -.B su -allows to run commands with substitute user and group ID. -.PP -When called without arguments -.B su -defaults to running an interactive shell as -.IR root . -.PP -For backward compatibility -.B su -defaults to not change the current directory and to only set the -environment variables -.B HOME -and -.B SHELL -(plus -.B USER -and -.B LOGNAME -if the target -.I user -is not root). It is recommended to always use the -.B \-\-login -option (instead it's shortcut -.BR \- ) -to avoid side effects caused by mixing environments. -.PP -This version of -.B su -uses PAM for authentication, account and session management. Some -configuration options found in other -.B su -implementations such as e.g. support of a wheel group have to be -configured via PAM. -.SH OPTIONS -.TP -\fB\-c\fR \fIcommand\fR, \fB\-\-command\fR=\fIcommand\fR -Pass -.I command -to the shell with the -.B \-c -option. -.TP -\fB\-\-session\-command\fR=\fIcommand\fR -Same as -.B \-c -but do not create a new session (discouraged). -.TP -\fB\-f\fR, \fB\-\-fast\fR -Pass -.B \-f -to the shell which may or may not be useful depending on the -shell. -.TP -\fB\-g\fR, \fB\-\-group\fR=\fIgroup\fR\fR -specify the primary group, this option is allowed for root user only -.TP -\fB\-G\fR, \fB\-\-supp-group\fR=\fIgroup\fR\fR -specify a supplemental group, this option is allowed for root user only -.TP -\fB\-\fR, \fB\-l\fR, \fB\-\-login\fR -Starts the shell as login shell with an environment similar to a real -login: -.RS 10 -.TP -o -clears all environment variables except for -.B TERM -.TP -o -initializes the environment variables -.BR HOME , -.BR SHELL , -.BR USER , -.BR LOGNAME , -.B PATH -.TP -o -changes to the target user's home directory -.TP -o -sets argv[0] of the shell to -.RB ' \- ' -in order to make the shell a login shell -.RE -.TP -\fB\-m\fR, \fB\-p\fR, \fB\-\-preserve-environment\fR -Preserves the whole environment, ie does not set -.BR HOME , -.BR SHELL , -.B USER -nor -.BR LOGNAME . -.TP -\fB\-s\fR \fISHELL\fR, \fB\-\-shell\fR=\fISHELL\fR -Runs the specified shell instead of the default. The shell to run is -selected according to the following rules in order: -.RS 10 -.TP -o -the shell specified with -.B \-\-shell -.TP -o -The shell specified in the environment variable -.B SHELL -if the -.B \-\-preserve-environment -option is used. -.TP -o -the shell listed in the passwd entry of the target user -.TP -o -/bin/sh -.RE -.IP -If the target user has a restricted shell (i.e. not listed in -/etc/shells) the -.B \-\-shell -option and the -.B SHELL -environment variables are ignored unless the calling user is root. -.TP -\fB\-\-help\fR -Display help text and exit. -.TP -\fB\-\-version\fR -Display version information and exit. -.SH CONFIG FILES -.B su -reads the -.I /etc/default/su -and -.I /etc/login.defs -configuration files. The following configuration items are relevant -for -.BR su (1): -.PP -.B FAIL_DELAY -(number) -.RS 4 -Delay in seconds in case of authentication failure. Number must be -a non-negative integer. -.RE -.PP -.B ENV_PATH -(string) -.RS 4 -Defines the PATH environment variable for a regular user. The -default value is -.IR /usr/local/bin:\:/bin:\:/usr/bin . -.RE -.PP -.B ENV_ROOTPATH -(string) -.br -.B ENV_SUPATH -(string) -.RS 4 -Defines the PATH environment variable for root. The default value is -.IR /usr/local/sbin:\:/usr/local/bin:\:/sbin:\:/bin:\:/usr/sbin:\:/usr/bin . -.RE -.PP -.B ALWAYS_SET_PATH -(boolean) -.RS 4 -If set to -.I yes -and \-\-login and \-\-preserve\-environment were not specified -.B su -initializes -.BR PATH . -.RE -.SH EXIT STATUS -.B su -normally returns the exit status of the command it executed. If the -command was killed by a signal, -.B su -returns the number of the signal plus 128. -.PP -Exit status generated by -.B su -itself: -.RS 10 -.TP -1 -Generic error before executing the requested command -.TP -126 -The requested command could not be executed -.TP -127 -The requested command could was not found -.RE -.SH FILES -.PD 0 -.TP 17 -/etc/pam.d/su -default PAM configuration file -.TP -/etc/pam.d/su-l -PAM configuration file if \-\-login is specified -.TP -/etc/default/su -command specific logindef config file -.TP -/etc/login.defs -global logindef config file -.PD 1 -.SH "SEE ALSO" -.BR pam (8), -.BR shells (5), -.BR login.defs (5) -.SH AUTHOR -Derived from coreutils' su which was based on an implementation from -David MacKenzie. -.SH AVAILABILITY -The su command is part of the util-linux package and is -available from -.UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/ -Linux Kernel Archive -.UE . |