aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/fs_var.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-06-12 07:40:28 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-06-12 07:40:28 -0400
commit2ac97688adea66d33b38eee0d84e12cc59fd2cf8 (patch)
tree177fe8a4181c903818d4695041dc452aa526db15 /src/firejail/fs_var.c
parent0.9.48 testing (diff)
downloadfirejail-2ac97688adea66d33b38eee0d84e12cc59fd2cf8.tar.gz
firejail-2ac97688adea66d33b38eee0d84e12cc59fd2cf8.tar.zst
firejail-2ac97688adea66d33b38eee0d84e12cc59fd2cf8.zip
0.9.48 testing
Diffstat (limited to 'src/firejail/fs_var.c')
-rw-r--r--src/firejail/fs_var.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/firejail/fs_var.c b/src/firejail/fs_var.c
index 9452d162d..11e9eabf5 100644
--- a/src/firejail/fs_var.c
+++ b/src/firejail/fs_var.c
@@ -326,7 +326,8 @@ void fs_var_utmp(void) {
326 endutent(); 326 endutent();
327 327
328 // save new utmp file 328 // save new utmp file
329 fwrite(&u_boot, sizeof(u_boot), 1, fp); 329 int rv = fwrite(&u_boot, sizeof(u_boot), 1, fp);
330 (void) rv;
330 SET_PERMS_STREAM(fp, 0, utmp_group, S_IRUSR | S_IWRITE | S_IRGRP | S_IWGRP | S_IROTH); 331 SET_PERMS_STREAM(fp, 0, utmp_group, S_IRUSR | S_IWRITE | S_IRGRP | S_IWGRP | S_IROTH);
331 fclose(fp); 332 fclose(fp);
332 333