Bug 10756

Summary: dd skip unnecessarily lengthy w/ CONFIG_LFS
Product: Busybox Reporter: Andrej K <dev>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.22.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Andrej K 2018-02-14 13:13:20 UTC
In dd_main(), if skip and lseek fails, it's not checked why it happened. Thus with CONFIG_LFS, even if the offset is simply behind the large file end (EINVAL), the code still tries to seek via safe_read().

Normal coreutils are somewhat smarter about this and fail immediately...