mirror of
https://github.com/golang/go
synced 2024-11-23 00:20:12 -07:00
wrong system call number for stat
TBR=rsc OCL=18833 CL=18833
This commit is contained in:
parent
79f5697b02
commit
4328d44254
@ -58,7 +58,7 @@ export func stat(name string, buf *Stat) (ret int64, errno int64) {
|
||||
if !StringToBytes(&namebuf, name) {
|
||||
return -1, ENAMETOOLONG
|
||||
}
|
||||
r1, r2, err := Syscall(SYS_STAT, BytePtr(&namebuf[0]), StatPtr(buf), 0);
|
||||
r1, r2, err := Syscall(SYS_STAT64, BytePtr(&namebuf[0]), StatPtr(buf), 0);
|
||||
return r1, err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user