Describe fossil.
[rsc] --rw-rw-r-- M 197601 glenda sys 1392 Nov 2 01:13 sys/man/6/users
/n/sourcesdump/2005/1102/plan9/sys/man/6/users:8,18 -
/n/sourcesdump/2005/1103/plan9/sys/man/6/users:8,16
by convention.
Each line in the file has the format
.IP
- .IB num : name : leader :\fImembers\fP
+ .IB id : name : leader :\fImembers\fP
.PP
where
- .I num
- is a decimal integer,
.I name
and
.I leader
/n/sourcesdump/2005/1102/plan9/sys/man/6/users:46,69 -
/n/sourcesdump/2005/1103/plan9/sys/man/6/users:44,75
are ignored.
.PP
The
- .I num
- in a line is a number used internally by a file server;
- there should be no duplicate
- .IR num s
+ .I id
+ in a line is an identifier used in the on-disk structures maintained
+ by a file server; there should be no duplicate
+ .IR id s
in the file.
- A negative
- .I num
+ In
+ .IR fossil (4),
+ .IR id s
+ are arbitrary text strings, typically the same as
+ .IR name .
+ In older Plan 9 file servers,
+ .IR id s
+ are small decimal numbers.
+ In those,
+ a negative
+ .I id
is special: a user with a negative
- .I num
+ .I id
cannot attach to the file server.
The file
.B /adm/users
itself is owned by user
- .IR adm ,
- having a negative
- .IR num ,
+ .I adm
and write protected to others,
so it can only be changed via console commands.
.SH "SEE ALSO"
.IR intro (5),
- .IR stat (5)
+ .IR stat (5),
+ .IR fossilcons (8)
Handle bogus dates better.
[rsc] --rw-rw-r-- M 197601 glenda sys 5684 Nov 2 10:37 sys/src/cmd/ip/imap4d/date.c
/n/sourcesdump/2005/1102/plan9/sys/src/cmd/ip/imap4d/date.c:30,36 -
/n/sourcesdump/2005/1103/plan9/sys/src/cmd/ip/imap4d/date.c:30,36
if(tm->tzoff < 0)
plus = "";
m = 0;
- if(tm->wday != 8){
+ if(0 <= tm->wday && tm->wday < 7){
m = snprint(s, n, "%s, ", wdayname[tm->wday]);
if(m < 0)
return m;
Zero returned memory.
[rsc] --rw-rw-r-- M 197601 glenda sys 5674 Nov 2 15:49 sys/src/9/port/alloc.c
/n/sourcesdump/2005/1102/plan9/sys/src/9/port/alloc.c:227,232 -
/n/sourcesdump/2005/1103/plan9/sys/src/9/port/alloc.c:227,234
setmalloctag(v, getcallerpc(&size));
setrealloctag(v, 0);
}
+ if(v)
+ memset(v, 0, size);
return v;
}
[rsc] --rw-rw-r-- M 197601 glenda sys 6067 Nov 2 20:42 sys/src/9/boot/boot.c
/n/sourcesdump/2005/1102/plan9/sys/src/9/boot/boot.c:69,74 -
/n/sourcesdump/2005/1103/plan9/sys/src/9/boot/boot.c:69,76
/*
* pick a method and initialize it
*/
+ if(method[0].name == nil)
+ fatal("no boot methods");
mp = rootserver(argc ? *argv : 0);
(*mp->config)(mp);
islocal = strcmp(mp->name, "local") == 0;
[rsc] --rw-rw-r-- M 197601 glenda sys 6067 Nov 2 20:42 sys/src/9/boot/boot.c
|