mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
0.9.48 testing
This commit is contained in:
parent
5be1d138e5
commit
2ac97688ad
2 changed files with 6 additions and 3 deletions
|
|
@ -326,7 +326,8 @@ void fs_var_utmp(void) {
|
|||
endutent();
|
||||
|
||||
// save new utmp file
|
||||
fwrite(&u_boot, sizeof(u_boot), 1, fp);
|
||||
int rv = fwrite(&u_boot, sizeof(u_boot), 1, fp);
|
||||
(void) rv;
|
||||
SET_PERMS_STREAM(fp, 0, utmp_group, S_IRUSR | S_IWRITE | S_IRGRP | S_IWGRP | S_IROTH);
|
||||
fclose(fp);
|
||||
|
||||
|
|
|
|||
|
|
@ -129,7 +129,8 @@ static void log_write(const unsigned char *str, int len, const char *fname) {
|
|||
out_cnt = len;
|
||||
}
|
||||
|
||||
fwrite(str, len, 1, out_fp);
|
||||
int rv = fwrite(str, len, 1, out_fp);
|
||||
(void) rv;
|
||||
fflush(0);
|
||||
}
|
||||
|
||||
|
|
@ -230,7 +231,8 @@ int main(int argc, char **argv) {
|
|||
if (n <= 0)
|
||||
break;
|
||||
|
||||
fwrite(buf, n, 1, stdout);
|
||||
int rv = fwrite(buf, n, 1, stdout);
|
||||
(void) rv;
|
||||
log_write(buf, n, fname);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue