 a3aeb398fe
			
		
	
	a3aeb398fe
	
	
	
		
			
			Previously, `Changes()` for a symlink to absolute path, with second-precision mtime of the link itself always resulted in ENOENT. This is because `compareFileContent()` was called for the link target path, without changing the root path. Fix moby/buildkit#172 Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
		
			
				
	
	
		
			15 lines
		
	
	
		
			299 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			299 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package fstest
 | |
| 
 | |
| import (
 | |
| 	"time"
 | |
| 
 | |
| 	"github.com/containerd/containerd/errdefs"
 | |
| )
 | |
| 
 | |
| // Lchtimes changes access and mod time of file without following symlink
 | |
| func Lchtimes(name string, atime, mtime time.Time) Applier {
 | |
| 	return applyFn(func(root string) error {
 | |
| 		return errdefs.ErrNotImplemented
 | |
| 	})
 | |
| }
 |