summaryrefslogtreecommitdiff
path: root/src/timedate/timedatectl.c
Commit message (Collapse)AuthorAge
* timedatectl: avoid using uninitialized varThomas Hindoe Paaboel Andersen2014-04-14
| | | | | | | | sec is not set if have_time is false so avoid using it. have_time was introduced in 9ff09bcb86fb125768667aca9bc0b10b1745370a but only the first uses for sec were covered Found with scan-build
* timedate: fix numerous grammar errors in comments and output/debug messagesJason St. John2014-03-24
|
* timedatectl: fix minor memory leakLennart Poettering2014-02-19
|
* timedatectl: work with old timedatedShawn Landden2013-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Which does have TimeUSec. Should we specifically check for this method instead of assuming time=0 means it doesn't exist? Before: shawn@debian-T61:~/git/systemd$ ./timedatectl Local time: Wed 1969-12-31 16:00:00 PST Universal time: Thu 1970-01-01 00:00:00 UTC RTC time: n/a Timezone: America/Los_Angeles (PST, -0800) NTP enabled: n/a NTP synchronized: no RTC in local TZ: no DST active: no Last DST change: DST ended at Sun 1969-10-26 01:59:59 PDT Sun 1969-10-26 01:00:00 PST Next DST change: DST begins (the clock jumps one hour forward) at Sun 1970-04-26 01:59:59 PST Sun 1970-04-26 03:00:00 PDT After: shawn@debian-T61:~/git/systemd$ ./timedatectl Local time: Wed 2013-12-11 14:03:21 PST Universal time: Wed 2013-12-11 22:03:21 UTC RTC time: n/a Timezone: America/Los_Angeles (PST, -0800) NTP enabled: n/a NTP synchronized: no RTC in local TZ: no DST active: no Last DST change: DST ended at Sun 2013-11-03 01:59:59 PDT Sun 2013-11-03 01:00:00 PST Next DST change: DST begins (the clock jumps one hour forward) at Sun 2014-03-09 01:59:59 PST Sun 2014-03-09 03:00:00 PDT
* bus: introduce "trusted" bus concept and encode access control in object vtablesLennart Poettering2013-12-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces a new concept of "trusted" vs. "untrusted" busses. For the latter libsystemd-bus will automatically do per-method access control, for the former all access is automatically granted. Per-method access control is encoded in the vtables: by default all methods are only accessible to privileged clients. If the SD_BUS_VTABLE_UNPRIVILEGED flag is set for a method it is accessible to unprivileged clients too. By default whether a client is privileged is determined via checking for its CAP_SYS_ADMIN capability, but this can be altered via the SD_BUS_VTABLE_CAPABILITY() macro that can be ORed into the flags field of the method. Writable properties are also subject to SD_BUS_VTABLE_UNPRIVILEGED and SD_BUS_VTABLE_CAPABILITY() for controlling write access to them. Note however that read access is unrestricted, as PropertiesChanged messages might send out the values anyway as an unrestricted broadcast. By default the system bus is set to "untrusted" and the user bus is "trusted" since per-method access control on the latter is unnecessary. On dbus1 busses we check the UID of the caller rather than the configured capability since the capability cannot be determined without race. On kdbus the capability is checked if possible from the attached meta-data of a message and otherwise queried from the sending peer. This also decorates the vtables of the various daemons we ship with these flags.
* Help output spring cleaningZbigniew Jędrzejewski-Szmek2013-12-08
| | | | | Use [brackets] only for optional elements. Use <optional> in XML sources.
* remove unused variablesThomas Hindoe Paaboel Andersen2013-11-18
|
* clients: try to follow roughly the same order in --help texts for common optionsLennart Poettering2013-11-07
|
* polkit: don't spawn local client if we access a remote systemLennart Poettering2013-11-07
|
* clients: unify how we invoke getopt_long()Lennart Poettering2013-11-06
| | | | | Among other things this makes sure we always expose a --version command and show it in the help texts.
* clients: various simplificationsLennart Poettering2013-11-06
|
* bus: update bus_map_all_properties()Kay Sievers2013-11-05
|
* bus: use internal helper to read org.freedesktop.DBus.Properties::GetAll ↵Kay Sievers2013-11-02
| | | | variables
* timedatectl: remove unused variableThomas Hindoe Paaboel Andersen2013-10-31
|
* localectl: always print error message when an operation failsLennart Poettering2013-10-31
|
* timedatectl: do not print the time zone for the rtc timeKay Sievers2013-10-31
|
* timedatectl: assorted simplificationsLennart Poettering2013-10-31
|
* timedatectl: get time values from the service instead of the clientKay Sievers2013-10-31
| | | | This allow querying the RTC time from the unprivileged timedatectl.
* timedatectl: port to sd-busThomas Hindoe Paaboel Andersen2013-10-30
|
* timedated: expose time and NTP sync flag via the busLennart Poettering2013-10-17
| | | | | This way, timedatectl can be run over the network and determine all properties correctly from the server rather than the client.
* man: improve grammar and word formatting in numerous man pagesJason St. John2013-07-02
| | | | | | | | | | Use proper grammar, word usage, adjective hyphenation, commas, capitalization, spelling, etc. To improve readability, some run-on sentences or sentence fragments were revised. [zj: remove the space from 'file name', 'host name', and 'time zone'.]
* Allow for the use of @ in remote host callsDaniel Wallace2013-06-09
| | | | | Without this you have to use %40 with the -H flag because dbus doesn't like the @ sign being unescaped.
* Fix --no-ask-passwordJan Janssen2013-05-23
| | | | | | POSIX_ME_HARDER mode is disabled for localectl. It doesn't make much sense in case of localectl, and there's little reason for localectl to behave specially.
* man: Document missing optionsJan Janssen2013-05-21
|
* Use initalization instead of explicit zeroingZbigniew Jędrzejewski-Szmek2013-04-05
| | | | | | | | | | | | | | | | | | | | | | | Before, we would initialize many fields twice: first by filling the structure with zeros, and then a second time with the real values. We can let the compiler do the job for us, avoiding one copy. A downside of this patch is that text gets slightly bigger. This is because all zero() calls are effectively inlined: $ size build/.libs/systemd text data bss dec hex filename before 897737 107300 2560 1007597 f5fed build/.libs/systemd after 897873 107300 2560 1007733 f6075 build/.libs/systemd … actually less than 1‰. A few asserts that the parameter is not null had to be removed. I don't think this changes much, because first, it is quite unlikely for the assert to fail, and second, an immediate SEGV is almost as good as an assert.
* timedatectl: show CanNTP fieldLennart Poettering2013-03-22
|
* pager: introduce "jump to end" optionHarald Hoyer2013-03-07
| | | | | | | | $ journalctl -be is what you want :) https://bugzilla.redhat.com/show_bug.cgi?id=867841
* strv: add strv_printThomas Hindoe Paaboel Andersen2013-02-07
| | | | Clearer, and spares the temp variable.
* build-sys: drop all distribution specfic checksLennart Poettering2013-01-04
| | | | Yay, we now have a completely generic systemd. No distribution specific checks anymore!
* timedatectl: improve english language DST change texts a bitLennart Poettering2012-11-23
|
* timedatectl: show both current actual timezone name and UTC distance in ↵Lennart Poettering2012-11-23
| | | | TImezone field
* timedatctl: bring manual strftime in sync with format_timestamp()Lennart Poettering2012-11-23
|
* timedatectl: replace ",' with ':'Kay Sievers2012-11-22
|
* timedatectl: shorten output to print single < 80 char lineKay Sievers2012-11-22
|
* timedatectl: break line to not exceed 80 columnsZbigniew Jędrzejewski-Szmek2012-11-14
|
* enable localization for common *ctl commandsDave Reisner2012-11-12
|
* timedatectl: properly print 30 minutes DST transitionsKay Sievers2012-11-11
|
* timedatectl: show "DST active: n/a" if no DST data is availableKay Sievers2012-11-02
|
* timedatectl: explain everything nobody wants to know about DSTKay Sievers2012-11-02
|
* set: introduce strv_sort()Lennart Poettering2012-10-19
|
* timedatectl,hostnamectl: rework --help textLennart Poettering2012-10-19
|
* timedatectl: rename --fix-system to --adjust-system-clockLennart Poettering2012-10-17
| | | | Quite long to read but hopefully less misleading.
* timedatectl: ensure n_zones is initializedDave Reisner2012-10-17
|
* timedatectl: properly initialize struct before decoding bus messagesLennart Poettering2012-10-17
|
* timedatectl: introduce new command line client for timedatedLennart Poettering2012-10-17
Much like logind has a client in loginctl, and journald in journalctl introduce timedatectl, to change the system time (incl. RTC), timezones and related settings.