commit 550f47230bd6e3ed32d8dfe13b01ce1181411e30
parent 5bcdd8c93813bee97492c723c108aa59840238e4
Author: Kris Maglione <bsdaemon@wmii.de>
Date: Sat, 10 Jun 2006 03:06:29 -0400
Fixed previous /client/n/ stat bug
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c
@@ -551,7 +551,7 @@ stat_of_name(Stat *stat, char *name, PackedQid wqid[IXP_MAX_WELEM], unsigned sho
snprintf(buf, sizeof(buf), "%d", idx_of_area(i2));
break;
default:
- return 0;
+ snprintf(buf, sizeof(buf), "%d", idx_of_client(i1));
break;
}
return pack_stat(stat, wqid, qsel, name, strlen(buf), IXP_DMREAD);
@@ -1125,7 +1125,7 @@ xread(IXPConn *c, Fcall *fcall)
snprintf(buf, sizeof(buf), "%d", idx_of_area(i2));
break;
default:
- return nil;
+ snprintf(buf, sizeof(buf), "%d", idx_of_client(i1));
break;
}
if((fcall->count = strlen(buf)))