src/util/util.c: virFileOpenAs.
Pushed under trivial rule.
---
src/util/util.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/util/util.c b/src/util/util.c
index 28a4fe7..ce98d20 100644
--- a/src/util/util.c
+++ b/src/util/util.c
@@ -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)
--
1.7.7.3
Show replies by date