1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00
Commit Graph

23004 Commits

Author SHA1 Message Date
Lennart Poettering
0d39fa9c69 util-lib: move more file I/O related calls into fileio.[ch] 2015-10-27 13:25:55 +01:00
Lennart Poettering
5f311f8c0e util: remove path_get_parent(), in favour of dirname_malloc()
We don't need two functions that do essentialy the same, hence drop
path_get_parent(), and stick to dirname_malloc(), but move it to
path-util.[ch].
2015-10-27 13:25:55 +01:00
Lennart Poettering
e4e73a6325 util-lib: split out hex/dec/oct encoding/decoding into its own file 2015-10-27 13:25:55 +01:00
Lennart Poettering
6bedfcbb29 util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] 2015-10-27 13:25:55 +01:00
Tom Gundersen
f47fc3ffc4 Merge pull request #1693 from ssahani/word
timesysnd: port to extract_first_word
2015-10-27 11:41:06 +01:00
Susant Sahani
880603a13c resolved: port to extract_first_word 2015-10-27 09:24:23 +05:30
Susant Sahani
2e3c585472 timesysnd: port to extract_first_word 2015-10-27 09:12:04 +05:30
Lennart Poettering
c2b4c0e68a Merge pull request #1688 from phomes/typo-fix
path-util: do not return NULL as int
2015-10-27 03:07:24 +01:00
Thomas Hindoe Paaboel Andersen
ce9d6bcf33 path-util: do not return NULL as int
strv_split will only return NULL on oom so we should return -ENOMEM
instead.

Looks like an oversight from the changes in 0f474365
2015-10-26 22:31:37 +01:00
Lennart Poettering
a9067193dd Merge pull request #1679 from evverx/refuse-manual-start-by-reload-or-restart
core: don't allow manual start with reload-or-restart too
2015-10-26 17:53:59 +01:00
Lennart Poettering
5422848d63 Merge pull request #1686 from medhefgo/remount-ro-fix
unmount: Pass in mount options when remounting read-only
2015-10-26 17:52:37 +01:00
Jan Janssen
471b48ed2f unmount: Pass in mount options when remounting read-only
man 2 mount says that the mountflags and data parameteres should
match the original values except for the desired changes. We only
bother with the mount options since the only flags we can change
are MS_RDONLY, MS_SYNCHRONOUS and MS_MANDLOCK; which shouldn't
matter too much.

Fixes: #351
2015-10-26 15:13:28 +01:00
Tom Gundersen
ad1a44b23b Merge pull request #1676 from poettering/util-lib-2
split up util.[ch] into more pieces, and other stuff
2015-10-26 13:21:41 +01:00
Tom Gundersen
0dec689b09 journal: add missing include 2015-10-26 13:12:30 +01:00
Lennart Poettering
24a99732e2 Merge pull request #1681 from ssahani/journal
journald-server: port to extract_first_word
2015-10-26 12:25:34 +01:00
Susant Sahani
d581d9d91f journald-server: port to extract_first_word 2015-10-26 15:32:08 +05:30
Evgeny Vereshchagin
efb30ba1a6 core: don't allow manual start with reload-or-restart too
fix bug: systemctl reload-or-restart starts a service with RefuseManualStart=yes
2015-10-26 04:23:09 +00:00
Lennart Poettering
e05ac0557f Merge pull request #1675 from evverx/run-protect-home
systemd-run can launch units with ProtectHome
2015-10-26 01:43:23 +01:00
Lennart Poettering
4d0d3d41d2 process-util: move more process related calls to process-util.[ch] 2015-10-26 01:24:39 +01:00
Lennart Poettering
2583fbea8e socket-util: move remaining socket-related calls from util.[ch] to socket-util.[ch] 2015-10-26 01:24:39 +01:00
Lennart Poettering
58ce77339c build-sys: add missing makefile symlink 2015-10-26 01:24:39 +01:00
Lennart Poettering
81a56d6f42 util-lib: move ether_addr_to_string() into ether-addr-util.c 2015-10-26 01:24:39 +01:00
Lennart Poettering
373cd63a37 path-util: minor coding style fix
We usually avoid relying on C's degrade-to-boolean functionality when
comparing numerical variables with 0. We use it only for pointers and
actual booleans.
2015-10-26 01:24:39 +01:00
Lennart Poettering
7cb48925dc core: rename SmackFileSystemRoot= to SmackFileSystemRootLabel=
That way it's in sync with the other SMACK label settings.

https://github.com/systemd/systemd/pull/1664#issuecomment-150891270
2015-10-26 01:24:39 +01:00
Lennart Poettering
67c7c892b9 user-util: never hand out or accept invalid UIDs
libc isn't that strict, but it's a good idea if we are, to not create
confusion around invalid user ids.
2015-10-26 01:24:38 +01:00
Lennart Poettering
d02608170e util: remove lookup_uid(), replace by uid_to_name()
So far we had two pretty much identical calls in user-util.[ch]:
lookup_uid() and uid_to_name(). Get rid of the former, in favour of the
latter, and while we are at it, rewrite it, to use getpwuid_r()
correctly, inside an allocation loop, as POSIX intended.
2015-10-26 01:24:38 +01:00
Lennart Poettering
b1d5277372 user-util: simplify uid parsing a bit 2015-10-26 01:24:38 +01:00
Lennart Poettering
b1d4f8e154 util-lib: split out user/group/uid/gid calls into user-util.[ch] 2015-10-26 01:24:38 +01:00
Lennart Poettering
c004493cde util-lib: split out IO related calls to io-util.[ch] 2015-10-26 01:24:38 +01:00
Evgeny Vereshchagin
64fa5643df shell-completion: systemd-run: add the property ProtectHome 2015-10-26 00:22:34 +00:00
Evgeny Vereshchagin
eff580744c run: can launch units with ProtectHome 2015-10-26 00:20:49 +00:00
Lennart Poettering
ae9b44b64c Merge pull request #1674 from evverx/run-fix-couldnot-find-executable
run: fix "couldn't find executable" for the existing executables
2015-10-26 00:41:45 +01:00
Lennart Poettering
46f190483f Merge pull request #1673 from mustrumr/date-fixes
Date fixes
2015-10-25 22:58:00 +01:00
Evgeny Vereshchagin
9dae55f4bb run: fix "couldn't find executable" for the existing executables
Fixes: #1672
2015-10-25 18:29:24 +00:00
Hristo Venev
b4ae407d3e man: fix systemd.time RAS syndrome and line length
"UTC time" is a RAP phrase (redundant acronym phrase phrase).
2015-10-25 18:46:20 +02:00
Hristo Venev
b1c5176699 test: "today UTC" is not always "today UTC"
On Oct 25 2015 in EET/EEST there is a UTC+3->UTC+2 transition. This
means that the representation of "today UTC" as local time is ambiguous.
2015-10-25 18:46:20 +02:00
Hristo Venev
078efddd37 basic: use the return value of endswith
It returns the position where the suffix begins, which can be used for
strndup to extract the prefix without calling strlen.
2015-10-25 18:46:20 +02:00
Ronny Chevalier
f739078599 Merge pull request #1671 from keszybz/zsh-journalctl-identifier
zsh-completion: journalctl --identifier
2015-10-25 17:19:30 +01:00
Zbigniew Jędrzejewski-Szmek
5ef80f3bbb zsh-completion: journalctl --identifier
Fixes #1549.
2015-10-25 10:49:19 -04:00
Tom Gundersen
1e23792147 Merge pull request #1668 from ssahani/net1
networkd: fix asserts
2015-10-25 14:35:40 +01:00
Tom Gundersen
7c8871d315 Merge pull request #1654 from poettering/util-lib
Various changes to src/basic/
2015-10-25 14:22:43 +01:00
Lennart Poettering
7c25742896 Merge pull request #1667 from evverx/run-protect-system
systemd-run can launch units with ProtectSystem
2015-10-25 13:56:40 +01:00
Lennart Poettering
f00022dd12 util-lib: move formats-util.h from shared/ to basic/
It's only a header file, definining format strings for basic system
types, hence it should be in src/basic/, not src/shared/.
2015-10-25 13:19:18 +01:00
Lennart Poettering
3ffd4af220 util-lib: split out fd-related operations into fd-util.[ch]
There are more than enough to deserve their own .c file, hence move them
over.
2015-10-25 13:19:18 +01:00
Zbigniew Jędrzejewski-Szmek
8e0dfb6b8e Merge pull request #1663 from poettering/journal-compress-fix
journal: fix error handling when compressing journal objects
2015-10-25 00:14:51 -04:00
Susant Sahani
c2353b2f2f vxlan: fix assert 2015-10-25 09:31:22 +05:30
Susant Sahani
cd946b9c36 veth: fix assert 2015-10-25 09:31:18 +05:30
Susant Sahani
0695cb4572 ipvlan: fix assert 2015-10-25 09:31:14 +05:30
Susant Sahani
ae185f4857 bond: fix assert 2015-10-25 09:30:59 +05:30
Susant Sahani
2645f07d81 vlan: fix assert 2015-10-25 09:30:17 +05:30