]> git.lizzy.rs Git - rust.git/commitdiff
Add comment
authorDavid Cook <divergentdave@gmail.com>
Wed, 22 Apr 2020 12:09:20 +0000 (07:09 -0500)
committerDavid Cook <divergentdave@gmail.com>
Wed, 22 Apr 2020 12:09:20 +0000 (07:09 -0500)
src/shims/fs.rs

index e7d41b36f5a6afc57e0b63eb45097fa51783cf47..ea0b998c2e3dcdd270557ffda801719972dea8a2 100644 (file)
@@ -1084,6 +1084,7 @@ fn ftruncate64(
                     Ok(-1)
                 }
             } else {
+                // The file is not writable
                 let einval = this.eval_libc("EINVAL")?;
                 this.set_last_error(einval)?;
                 Ok(-1)