diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-11-18 12:00:13 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-11-18 12:00:13 +0100 |
commit | bcaf52ebcde1933f4891c3e6f994951aa7c012f7 (patch) | |
tree | 561e56efcd1ac83f128667cda0ddbccc0e57d3ae /sys/src/cmd/hjfs/dev.c | |
parent | 28452d3fe553c1c61321d1973ee5db57b4dcc3a5 (diff) |
hjfs: ORCLOSE parent check, estrdup / erealloc, CHFNOPERM consistency
check for write premission in the parent directory
for open with ORCLOSE. honor CHFNOPERM not just in
chancreat(), pikeshedd the error handling. added
estrdup()/erealloc() that call sysfatal instead
of returning nil.
Diffstat (limited to 'sys/src/cmd/hjfs/dev.c')
-rw-r--r-- | sys/src/cmd/hjfs/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/hjfs/dev.c b/sys/src/cmd/hjfs/dev.c index 9afdeba16..45c3a9e09 100644 --- a/sys/src/cmd/hjfs/dev.c +++ b/sys/src/cmd/hjfs/dev.c @@ -80,7 +80,7 @@ newdev(char *file) werrstr("device file too short"); goto error; } - d->name = strdup(file); + d->name = estrdup(file); for(b = d->buf; b < d->buf + BUFHASH + 1; b++) b->dnext = b->dprev = b; d->workr.l = &d->workl; |