aboutsummaryrefslogtreecommitdiffstats
path: root/ports/darwin/guts/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/darwin/guts/stat.c')
-rw-r--r--ports/darwin/guts/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/darwin/guts/stat.c b/ports/darwin/guts/stat.c
index 1e1cf67..8a0742c 100644
--- a/ports/darwin/guts/stat.c
+++ b/ports/darwin/guts/stat.c
@@ -20,7 +20,7 @@
* don't need to check for a symlink on this end
*/
msg = pseudo_client_op(OP_STAT, 0, -1, AT_FDCWD, path, buf);
- if (msg) {
+ if (msg && msg->result == RESULT_SUCCEED) {
pseudo_stat_msg(buf, msg);
}