(workDir string, containerPath string)
| 35 | } |
| 36 | |
| 37 | func absPath(workDir string, containerPath string) string { |
| 38 | if path.IsAbs(containerPath) { |
| 39 | return containerPath |
| 40 | } |
| 41 | |
| 42 | if workDir == "" { |
| 43 | workDir = "/" |
| 44 | } |
| 45 | |
| 46 | return path.Join(workDir, containerPath) |
| 47 | } |
| 48 | |
| 49 | func findUID(f io.Reader, uname string) (int, error) { |
| 50 | users, err := user.ParsePasswdFilter(f, func(u user.User) bool { |
no outgoing calls
no test coverage detected