Commit Graph

164 Commits

Author SHA1 Message Date
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
36f6fb7e06 mtree uses strsvis, not strvis. 2000-10-05 20:16:02 +00:00
wennmach
914178b225 code.c is no longer used, we use strsvis instead. Removed prototypes
from extern.h
1999-12-07 18:42:06 +00:00
wennmach
e1bf4e526c Use strunvis instead of homebrewed "decode" routine 1999-12-01 22:14:46 +00:00
wennmach
dff19e227b Now that we have strsvis, use it. 1999-12-01 22:12:52 +00:00
wennmach
5677540edf Add __RCSID() 1999-11-12 14:42:35 +00:00
wennmach
7b5b69d3cb Add RCS tag 1999-11-09 22:41:53 +00:00
drochner
68062ca8dc prototype encode()/decode() 1999-11-09 10:16:55 +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
ac79e98358 fix thinko in mtime stuff. 1999-07-10 19:59:28 +00:00
christos
78a99dbab7 portability fixes:
- don't use timespecs in struct stat on non 4.4BSD systems
- don't assume that tv_sec is a time_t
1999-07-06 15:11:14 +00:00
hubertf
657f0ba4f7 Actually generate MD5 checksums, as reported in PR 7928.
Approved by Dr. Lex Wennmacher <wennmach@geo.Uni-Koeln.DE>
1999-07-06 12:59:12 +00:00
mycroft
d77575d3c8 Clean up SYNOPSIS formatting. 1999-03-07 11:58:22 +00:00
mrg
f2aaba6db6 - add -m and -i to change file flags more usefully.
- fix bugs in fileflags checking

all of the above from dr. lex wennmacher <wennmach@geo.Uni-Koeln.DE>
with some error fixes from egcs via myself.
1999-02-11 15:32:23 +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
itohy
6b676a3cca getcwd() is not equivalent of getwd() if you want to print an error message. 1998-12-05 03:29:25 +00:00
thorpej
6b7fe574f7 Use getcwd(3) instead of getwd(3). 1998-12-03 23:33:10 +00:00
christos
e091e64548 Namespace protection against MAXUID etc. 1998-11-03 15:14:40 +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
nathanw
b757463521 Add braces to satisfy egcs. 1998-08-30 03:20:09 +00:00
ross
5b1f2d4c8c Add {} pairs to shut up egcs. 1998-08-27 18:03:42 +00:00
mrg
32f519716b - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
lukem
0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
enami
7a8787ba53 Make this compile again on NetBSD/alpha; cast off_t variable to long long
so that it matches printf format `%qd'.
1997-10-24 03:12:06 +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
agc
f642bb0d2f Add -U flag, checking for mismatch. This is the same as the old -u flag,
except that an error which was corrected is deemed not to be an error.

Necessary for use in the FreeBSD ports system.
1997-08-20 15:14:51 +00:00
mikel
fb325bad88 fix printf() formats, make explicit comparisons to NULL (gcc -Wall) 1997-07-11 07:05:29 +00:00
mikel
d74bc9dc39 xref chown(8) not chown(1), kill extra comma 1997-07-10 05:14:15 +00:00
lukem
37def5da97 Don't incorrectly warn about a subdirectory of 'foo' called 'bar' when there's
directory at the same level as 'foo' called 'bar'. (e.g, a definition
of usr/obj exists, and a def for usr/bin, but none for usr/obj/bin. don't
warn about usr/obj/bin because of the usr/bin entry).
Fix from enami tsugutomo <enami@ba2.so-net.or.jp> in [bin/3365]
1997-06-23 14:34:52 +00:00
gwr
10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr
012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +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
thorpej
cf8907875b Add a missing "break;", pointed out by Chris Demetriou. 1996-09-05 23:29:22 +00:00
mycroft
6a6476be8b Add a `-t' option to update time stamps. 1996-09-05 09:56:48 +00:00
mycroft
e73875ce0a Only record sizes for regular files. 1996-09-05 09:24:19 +00:00
jtc
dd05bd5124 Rename struct timespec fields to conform to POSIX.1b 1996-02-01 00:04:52 +00:00
pk
ad511bd89a Insert parentheses to get correct precedence when comparing time-stamps
(from Arne Juul; PR#1660).
1995-10-22 20:12:07 +00:00
cgd
788c306f2b add an 'optional' keyword, which allows files to be in the
specification, but _not_ in the file hierarchy.  contrib'd by:
Ed Symanzik <zik@enoch.cl.msu.edu>.  Man page adjustment to match, and
minor man page cleanup, by me.
1995-03-07 21:26:23 +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
82f956cd93 from 4.4-Lite 1995-03-07 14:44:05 +00:00
cgd
d8806814a6 specify man pages the new way. 1994-12-22 11:32:57 +00:00
cgd
82e71aa1e4 #definery fun... 1994-04-25 18:21:23 +00:00
cgd
d78ddc337d off_t exp. 1994-03-27 09:09:54 +00:00
cgd
7af90ebe38 off_t exp. 1994-03-27 09:09:49 +00:00
cgd
10a690b9a2 off_t exp. 1994-03-27 09:09:42 +00:00
cgd
8415642178 don't forget the man page. from Luke Mewburn <lm@rmit.edu.au> 1994-03-19 07:55:56 +00:00
cgd
44c6a0bbc1 make things a bit more consistent 1993-11-17 11:00:52 +00:00
cgd
454f76bbdd make it compile... 1993-11-02 08:44:00 +00:00
cgd
aea2695257 fix oops 1993-11-02 08:43:48 +00:00
mycroft
ef17c615c2 Clean up deleted files. 1993-11-02 07:51:15 +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
jtc
99cd400e2e Use *->fts_errno instead of errno after fts_read(). The fts manpage
indicates that the fts_errno will be set to the correct value, but there
are no guarentees about errno.
1993-10-01 01:03:22 +00:00
deraadt
5bfebdcaf0 update for fts library change 1993-08-06 03:48:27 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft
b465cf4697 Add RCS identifiers. 1993-07-30 22:11:51 +00:00
jtc
5108aaad56 Update source to use posix fnmatch 1993-06-16 17:19:05 +00:00
mycroft
0152106f20 Reverse sense of fnmatch() to match POSIX. 1993-04-10 01:32:25 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00