Searched hist:13371 (Results 1 - 1 of 1) sorted by relevance

/gem5/src/sim/
H A Dsyscall_emul.hh13371:1e796c9f369d Wed Sep 26 12:11:00 EDT 2018 Ciro Santilli <ciro.santilli@arm.com> syscall_emul: fix openat when directory does not end in "/"

Before this commit, the following code:

dir_fd = open(".", O_DIRECTORY);
file_fd = openat(dir_fd, "ble", O_CREAT, S_IRUSR | S_IWUSR);

would create a file called ".ble" in the current working directory,
instead of the correct "ble".

Change-Id: I1525a088d49744e29b760387afabef9f1ac98646
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/13005
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Brandon Potter <Brandon.Potter@amd.com>

Completed in 39 milliseconds