aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/os-Linux/file.c')
-rw-r--r--arch/um/os-Linux/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c
index d7404c621ff7..b5afcfd0f861 100644
--- a/arch/um/os-Linux/file.c
+++ b/arch/um/os-Linux/file.c
@@ -191,6 +191,8 @@ int os_open_file(const char *file, struct openflags flags, int mode)
191 f |= O_TRUNC; 191 f |= O_TRUNC;
192 if (flags.e) 192 if (flags.e)
193 f |= O_EXCL; 193 f |= O_EXCL;
194 if (flags.a)
195 f |= O_APPEND;
194 196
195 fd = open64(file, f, mode); 197 fd = open64(file, f, mode);
196 if (fd < 0) 198 if (fd < 0)