mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
parent
5ad2874b24
commit
4b6d8de09c
@ -531,7 +531,7 @@
|
||||
<term><option>--avatar=</option><replaceable>PATH</replaceable></term>
|
||||
<term><option>--login-background=</option><replaceable>PATH</replaceable></term>
|
||||
|
||||
<listitem><para>Accept a file path. If set, the specifified file is used to overwrite the
|
||||
<listitem><para>Accept a file path. If set, the specified file is used to overwrite the
|
||||
corresponding file in the user's blob directory. If blank, the corresponding file is deleted
|
||||
from the blob directory. Essentially, these options are shortcuts to
|
||||
<option>--blob=</option><replaceable>FILENAME</replaceable>=<replaceable>PATH</replaceable>
|
||||
|
@ -119,7 +119,7 @@ int bus_message_read_blobs(sd_bus_message *m, Hashmap **ret, sd_bus_error *error
|
||||
return -errno;
|
||||
|
||||
/* Refuse fds w/ unexpected flags set. In particular, we don't want to permit O_PATH FDs, since
|
||||
* those don't actually guarentee that the client has access to the file. */
|
||||
* those don't actually guarantee that the client has access to the file. */
|
||||
if ((flags & ~(O_ACCMODE|RAW_O_LARGEFILE)) != 0)
|
||||
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "FD for %s has unexpected flags set", filename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user