diff options
author | rsc <devnull@localhost> | 2003-12-17 04:34:52 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-12-17 04:34:52 +0000 |
commit | 49588d5d9089589ccda28c41aae90c29d6f72787 (patch) | |
tree | 48cbc911e34b71977b7b98b4d0b94b27d4454081 /src/cmd/acme/fsys.c | |
parent | 7f11104a5737adf261d10bc1a7b85e740f2eb491 (diff) | |
download | plan9port-49588d5d9089589ccda28c41aae90c29d6f72787.tar.gz plan9port-49588d5d9089589ccda28c41aae90c29d6f72787.tar.bz2 plan9port-49588d5d9089589ccda28c41aae90c29d6f72787.zip |
Tweaks to various bits.
Until I hear otherwise, Refs aren't used enough to
merit their own assembly. They are now implemented with locks.
Diffstat (limited to 'src/cmd/acme/fsys.c')
-rw-r--r-- | src/cmd/acme/fsys.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/acme/fsys.c b/src/cmd/acme/fsys.c index cd333dc7..d220bdef 100644 --- a/src/cmd/acme/fsys.c +++ b/src/cmd/acme/fsys.c @@ -306,6 +306,7 @@ fsysattach(Xfid *x, Fid *f) Fcall t; int id; Mntdir *m; + char buf[128]; if(strcmp(x->fcall.uname, user) != 0) return respond(x, &t, Eperm); @@ -327,8 +328,10 @@ fsysattach(Xfid *x, Fid *f) m->ref++; break; } - if(m == nil) - sendp(cerr, estrdup("unknown id in attach")); + if(m == nil){ + snprint(buf, sizeof buf, "unknown id '%s' in attach", x->fcall.aname); + sendp(cerr, estrdup(buf)); + } qunlock(&mnt.lk); return respond(x, &t, nil); } |