diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-06-03 23:33:35 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-06-03 23:33:35 +0200 |
commit | 56ffc907ac25b28e3640a2d1ef5b61df90f0b700 (patch) | |
tree | 4e185e8c2de6ce9e9bb15776881cdd8150b29210 /sys/src/9/port/netif.c | |
parent | 8c70c09bfdfb5857e60e2455642603a883847c14 (diff) |
kernel: stop the practice of passing DMDIR to devir() perm argument
devdir internally replicates the qid in ther perm stat field
already and the practice of explicitely passing just causing
confusion when done inconsistently.
Diffstat (limited to 'sys/src/9/port/netif.c')
-rw-r--r-- | sys/src/9/port/netif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/port/netif.c b/sys/src/9/port/netif.c index 48bcdd405..19e4dd9b3 100644 --- a/sys/src/9/port/netif.c +++ b/sys/src/9/port/netif.c @@ -72,7 +72,7 @@ netifgen(Chan *c, char*, Dirtab *vp, int, int i, Dir *dp) case DEVDOTDOT: q.type = QTDIR; q.path = 0; - devdir(c, q, ".", 0, eve, DMDIR|0555, dp); + devdir(c, q, ".", 0, eve, 0555, dp); break; case 0: q.path = Ncloneqid; @@ -99,7 +99,7 @@ netifgen(Chan *c, char*, Dirtab *vp, int, int i, Dir *dp) q.type = QTDIR; q.path = NETQID(i, N3rdqid); snprint(up->genbuf, sizeof up->genbuf, "%d", i); - devdir(c, q, up->genbuf, 0, eve, DMDIR|0555, dp); + devdir(c, q, up->genbuf, 0, eve, 0555, dp); break; } return 1; @@ -121,7 +121,7 @@ netifgen(Chan *c, char*, Dirtab *vp, int, int i, Dir *dp) q.type = QTDIR; q.path = N2ndqid; strcpy(up->genbuf, nif->name); - devdir(c, q, up->genbuf, 0, eve, DMDIR|0555, dp); + devdir(c, q, up->genbuf, 0, eve, 0555, dp); break; case 0: q.path = NETQID(NETID(c->qid.path), Ndataqid); |