lukem
617a65b6f7
replace home-grown parser with fparseln()
2001-09-10 03:22:24 +00:00
lukem
c0e6fdedfc
- add parsetype() (a la parsekey()) to parse the "type=xxx" arg. this improves
...
the error detection for invalid types, as well as shrinking binary size
- implement inotype() using ftype(), rather than duplicating the switch
- change "char *" arguments to "const char *"
2001-07-18 04:51:54 +00:00
christos
f69fcce6d5
improve readability of error messages by quoting the string that we
...
did not understand. Avoids lossage like "unknown group named".
2001-03-25 20:02:01 +00:00
simonb
7cbb4e05a0
ANSIfy, KNF, in preperation for more work.
2001-03-09 03:09:45 +00:00
hubertf
1156c833f6
Remove all the "#ifdef __APPLE__" code, to make this actually
...
build again on Darwin. The code in question is outdated.
OK'd by Wilfredo Sanchez wsanchez@MIT.EDU .
2001-02-20 19:45:51 +00:00
enami
e92c3f2867
- The type of return value of setmode is a void * and getmode takes it,
...
rather than mode_t *.
- Free the storage allocated by setmode unless it is obvious that program
exits immediately.
2000-10-10 14:30:40 +00:00
wennmach
e1bf4e526c
Use strunvis instead of homebrewed "decode" routine
1999-12-01 22:14:46 +00:00
wennmach
7db0eb0492
Encode file names using strvis(3) when creating a specification.
...
Escape white space characters and `#' characters. Do the inverse
when reading specs.
This is a temporary fix until we have strzouvis(3) (or some such)
which is an improved version of strvis (taking an additional list
of characters to encode).
Fixes PR 5006 and PR 7663
1999-11-07 20:23:01 +00:00
christos
62871103f9
Appease gcc-2.8.1, make printf formats more portable.
1998-12-19 15:38:45 +00:00
jwise
2e6cacfae6
Add an `md5' keyword to mtree, which takes as an argument the MD5 cryptographic
...
checksum of the file in question, optionally preceeded by `0x'.
This has been tested, and does work, AFAICT. There is currently no md5 equivalent
of the '-s' flag for use with checksum.
1998-12-06 19:07:53 +00:00
mrg
f2fb63efda
add support for 4.4BSD file flags. we take a `flags=xxx' parameter,
...
using the same style of naming as chflags, ls & xinstall use, plus an
additional `none' to turn off a default setting.
1998-10-10 07:50:27 +00:00
wsanchez
c45946d27c
Use u_int32_t rather than Sys-V u_long.
...
Rename err() to mtree_err(), to avoid conflict with libc.
1998-10-08 02:04:55 +00:00
itohy
20b86c5f48
The return value of setmode(3) is a pointer to malloc()'ed area
...
and must be freed to avoid memory leaks if called repeatedly.
1998-09-23 19:46:00 +00:00
lukem
4eb7653054
WARNSify, getopt returns -1 not EOF
1997-10-17 11:46:30 +00:00
mrg
590bf19cde
merge lite-2
1997-10-17 05:24:29 +00:00
mikel
fb325bad88
fix printf() formats, make explicit comparisons to NULL (gcc -Wall)
1997-07-11 07:05:29 +00:00
mikel
b4f13ff0c4
use appropriate strto*() functions, and cast results when appropriate;
...
fixes PR bin/1582.
1997-04-25 05:45:24 +00:00
jtc
dd05bd5124
Rename struct timespec fields to conform to POSIX.1b
1996-02-01 00:04:52 +00:00
cgd
94f5a7441c
add NetBSD id's
1995-03-07 21:12:04 +00:00
cgd
d03f028e33
clean up import, fix a few bugs, etc.
1995-03-07 15:28:32 +00:00
cgd
d78ddc337d
off_t exp.
1994-03-27 09:09:54 +00:00
cgd
476023b5bb
latest mtree from uunet. doesn't compile, but that'll be fixed soon.
...
(want to have 'pseudo-virgin' sources, for when fixed fnmatch stuff
is released...)
1993-11-02 07:51:06 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00