Ubuntu Pastebin

Paste from jdstrand at Wed, 8 Feb 2017 21:14:12 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
We have this:

if (mountflags & MS_BIND) {
	if (mountflags & MS_REC) {
		sc_string_append(buf, buf_size, " --rbind");
	} else {
		sc_string_append(buf, buf_size, " --bind");
	}
	used_special_flags |= MS_BIND | MS_REC;
}


I expected this:

if (mountflags & MS_BIND) {
	if (mountflags & MS_REC) {
		sc_string_append(buf, buf_size, " --rbind");
		used_special_flags |= MS_REC;
	} else {
		sc_string_append(buf, buf_size, " --bind");
	}
	used_special_flags |= MS_BIND;
}
Download as text