1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:20:03 -07:00

wrong system call number for stat

TBR=rsc
OCL=18833
CL=18833
This commit is contained in:
Rob Pike 2008-11-07 16:17:42 -08:00
parent 79f5697b02
commit 4328d44254

View File

@ -58,7 +58,7 @@ export func stat(name string, buf *Stat) (ret int64, errno int64) {
if !StringToBytes(&namebuf, name) { if !StringToBytes(&namebuf, name) {
return -1, ENAMETOOLONG 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; return r1, err;
} }