mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
util: Fix the indention
src/util/util.c: virFileOpenAs.
This commit is contained in:
parent
57349ffc10
commit
fafb80a145
@ -995,14 +995,14 @@ virFileOpenAs(const char *path, int openflags, mode_t mode,
|
||||
|
||||
/* allow using -1 to mean "current value" */
|
||||
if (uid == (uid_t) -1)
|
||||
uid = getuid();
|
||||
uid = getuid();
|
||||
if (gid == (gid_t) -1)
|
||||
gid = getgid();
|
||||
gid = getgid();
|
||||
|
||||
/* treat absence of both flags as presence of both for simpler
|
||||
* calling. */
|
||||
if (!(flags & (VIR_FILE_OPEN_NOFORK|VIR_FILE_OPEN_FORK)))
|
||||
flags |= VIR_FILE_OPEN_NOFORK|VIR_FILE_OPEN_FORK;
|
||||
flags |= VIR_FILE_OPEN_NOFORK|VIR_FILE_OPEN_FORK;
|
||||
|
||||
if ((flags & VIR_FILE_OPEN_NOFORK)
|
||||
|| (getuid() != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user