]> git.ipfire.org Git - thirdparty/systemd.git/commit
dbus-util: let's take it down a notch when converting file mode to string
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 1 Jun 2023 18:22:20 +0000 (20:22 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 1 Jun 2023 18:33:17 +0000 (20:33 +0200)
commitb86ed7f710b89b7a7e36da158c1bb8c69ffed144
tree39900902208b5d7dd5325c50f2b08050a0fa24b2
parent6178ced491462cbd9869d3eeef6b4af530746d61
dbus-util: let's take it down a notch when converting file mode to string

I'm definitely a fan of precision, but in this case it's a bit too much:

    $ systemd-run --unit=test --socket-property=ListenFIFO=/tmp/foo --socket-property=SocketMode=0644 true
    $ systemctl cat test.socket
    # /run/systemd/transient/test.socket
    # This is a transient unit file, created programmatically via the systemd API. Do not edit.
    [Unit]
    Description=/usr/bin/true

    [Socket]
    ListenFIFO=/tmp/foo
    SocketMode=0000000000000000000000000000000000000644
src/core/dbus-util.c