git: 83d457310ed3 - main - devel/dbus: create directory for machine-id

Alexey Dokuchaev danfe at freebsd.org
Fri Jul 2 02:29:02 UTC 2021


On Thu, Jul 01, 2021 at 10:16:37PM +0000, Adriaan de Groot wrote:
> commit 83d457310ed3c234b2f4ea5b4d18a00301bc0c09
> 
>     devel/dbus: create directory for machine-id
>     
>     Create the directory where dbus-uuidgen is *going* to write
>     the machine-id, just in case -- might affect only older FreeBSD
>     versions. dbus-uuidgen doesn't create intermediate directories
>     when given an explicit path either, so it does need to be done
>     by the environment.
>     
> ...
> @@ -23,6 +23,7 @@ stop_postcmd="dbus_poststop"
>  
>  dbus_prestart()
>  {
> +    mkdir -p /var/lib/dbus
>      %%PREFIX%%/bin/dbus-uuidgen --ensure
>      mkdir -p /var/run/dbus
>  }

So now there're two identical mkdir's, was that intended?

./danfe


More information about the dev-commits-ports-main mailing list