mirror of
https://github.com/systemd/systemd
synced 2026-03-16 18:14:46 +01:00
Compare commits
5 Commits
d0badc0a61
...
a9859a62f1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9859a62f1 | ||
|
|
14d4bb527c | ||
|
|
dbd7555190 | ||
|
|
475c8a491f | ||
|
|
dca48de7ed |
@ -255,8 +255,8 @@ int mkdir_p_root_full(const char *root, const char *p, uid_t uid, gid_t gid, mod
|
|||||||
if (nfd < 0)
|
if (nfd < 0)
|
||||||
return nfd;
|
return nfd;
|
||||||
|
|
||||||
if (ts == USEC_INFINITY && !uid_is_valid(uid) && !gid_is_valid(gid))
|
if ((uid_is_valid(uid) || gid_is_valid(gid)) && fchown(nfd, uid, gid) < 0)
|
||||||
return 1;
|
return -errno;
|
||||||
|
|
||||||
if (ts != USEC_INFINITY) {
|
if (ts != USEC_INFINITY) {
|
||||||
struct timespec tspec;
|
struct timespec tspec;
|
||||||
@ -269,8 +269,5 @@ int mkdir_p_root_full(const char *root, const char *p, uid_t uid, gid_t gid, mod
|
|||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((uid_is_valid(uid) || gid_is_valid(gid)) && fchown(nfd, uid, gid) < 0)
|
|
||||||
return -errno;
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <sd-varlink.h>
|
#include "sd-varlink.h"
|
||||||
|
|
||||||
#include "alloc-util.h"
|
#include "alloc-util.h"
|
||||||
#include "glyph-util.h"
|
#include "glyph-util.h"
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
#include "shared-forward.h"
|
#include "shared-forward.h"
|
||||||
|
|
||||||
typedef enum PromptFlags {
|
typedef enum PromptFlags {
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include "shared-forward.h"
|
#include "shared-forward.h"
|
||||||
|
|
||||||
typedef enum RereadPartitionTableFlags {
|
typedef enum RereadPartitionTableFlags {
|
||||||
REREADPT_FORCE_UEVENT = 1 << 0, /* Force a "change" ueven out on partitions we didn't resize/remove/add */
|
REREADPT_FORCE_UEVENT = 1 << 0, /* Force a "change" uevent out on partitions we didn't resize/remove/add */
|
||||||
REREADPT_BSD_LOCK = 1 << 1, /* Take a BSD lock on the device around the rescan operation */
|
REREADPT_BSD_LOCK = 1 << 1, /* Take a BSD lock on the device around the rescan operation */
|
||||||
} RereadPartitionTableFlags;
|
} RereadPartitionTableFlags;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user