st_size in struct stat has type off_t (long long) and not unsigned long
change strtoul() to strtoq()
This commit is contained in:
parent
662d0b8c51
commit
10e1798df5
@ -211,7 +211,7 @@ set(t, ip)
|
||||
err("invalid link count %s", val);
|
||||
break;
|
||||
case F_SIZE:
|
||||
ip->st_size = strtoul(val, &ep, 10);
|
||||
ip->st_size = strtoq(val, &ep, 10);
|
||||
if (*ep)
|
||||
err("invalid size %s", val);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user