@@ -1223,10 +1223,11 @@ var cgroupDeviceType = map[string]bool{
12231223 "b" : true , // block device
12241224 "c" : true , // character device
12251225}
1226+
12261227var cgroupDeviceAccess = map [string ]bool {
1227- "r" : true , //read
1228- "w" : true , //write
1229- "m" : true , //mknod
1228+ "r" : true , // read
1229+ "w" : true , // write
1230+ "m" : true , // mknod
12301231}
12311232
12321233// parseLinuxResourcesDeviceAccess parses the raw string passed with the --device-access-add flag
@@ -1448,12 +1449,12 @@ func parseEnv(env string) (string, string, error) {
14481449
14491450// parseEnvFile reads a file with environment variables enumerated by lines
14501451//
1451- // `` Environment variable names used by the utilities in the Shell and
1452+ // “ Environment variable names used by the utilities in the Shell and
14521453// Utilities volume of IEEE Std 1003.1-2001 consist solely of uppercase
14531454// letters, digits, and the '_' (underscore) from the characters defined in
14541455// Portable Character Set and do not begin with a digit. *But*, other
14551456// characters may be permitted by an implementation; applications shall
1456- // tolerate the presence of such names.''
1457+ // tolerate the presence of such names.”
14571458// -- http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
14581459//
14591460// As of #16585, it's up to application inside docker to validate or not
@@ -1495,7 +1496,6 @@ func parseEnvFile(filename string) ([]string, error) {
14951496 }
14961497
14971498 if len (data ) > 1 {
1498-
14991499 // pass the value through, no trimming
15001500 lines = append (lines , fmt .Sprintf ("%s=%s" , variable , data [1 ]))
15011501 } else {
0 commit comments