1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: more chdir/chmod fixes

This commit is contained in:
Alexander Medvednikov
2021-08-28 12:51:37 +03:00
parent 2b92ccecb5
commit cf4081e2dd
12 changed files with 14 additions and 14 deletions

View File

@ -886,7 +886,7 @@ pub fn flush() {
// chmod change file access attributes of `path` to `mode`.
// Octals like `0o600` can be used.
pub fn chmod(path string, mode int)? {
pub fn chmod(path string, mode int) ? {
if C.chmod(&char(path.str), mode) != 0 {
return error_with_code('chmod failed: ' + posix_get_error_msg(C.errno), C.errno)
}