christos
f8c23a2b94
merge conflicts, new reach-over Makefiles
2016-01-13 03:39:27 +00:00
christos
75f6d617e2
Import latest gpl2 diffutils
2016-01-13 03:15:29 +00:00
christos
b3048154cf
don't use local dup wrong define
2016-01-13 01:31:17 +00:00
christos
4555f8de30
ggr. bsd.files.mk does not have an includes target...
2016-01-13 00:18:01 +00:00
christos
8b1ac22df2
Hook gettext
2016-01-12 22:58:52 +00:00
christos
95b39c65ca
merge conflicts and add reach-over Makefiles
2016-01-12 22:58:00 +00:00
christos
946379e7b3
import latest GPLv2 gettext
2016-01-12 19:50:28 +00:00
christos
2fb7dbc941
protect with MKBSDGREP
2016-01-10 22:22:16 +00:00
christos
5e9b9be0de
build grep from here.
2016-01-10 22:19:41 +00:00
christos
d571953c66
minor nits
2016-01-10 22:18:05 +00:00
christos
fb69a85ab0
- merge conflicts, enable wide char support.
2016-01-10 22:16:40 +00:00
christos
a8fa202a64
Import latest GPLv2 grep
2016-01-10 21:36:14 +00:00
christos
8ec658f57a
- Change LDADD/DPADD in library dependencies to LIBDPLIBS
...
- Fix some LDADD abuse and remove useless dependencies
- include <bsd.init.mk> in the right place where appropriate
From Rin Okuyama
2016-01-05 13:07:46 +00:00
macallan
b8ae390746
initial import of Device Tree Compiler and related tools
2015-12-04 12:30:05 +00:00
dholland
5ca5bd7479
Don't use %m in format strings sent to printf.
2015-11-09 00:53:57 +00:00
wiz
971d420649
Close comment.
...
From Henning Petersen in PR 49403.
2014-11-19 10:37:29 +00:00
joerg
755f404f87
Remove tautologic check.
2014-11-15 01:24:53 +00:00
joerg
f7673b99b4
Comment out impossible code.
2014-11-15 01:24:38 +00:00
wiz
a9bf595198
Put local change in sorted location.
2014-08-18 07:12:47 +00:00
christos
dace66f063
merge local changes
2014-08-18 06:57:25 +00:00
christos
69606e3f5c
import latest gpl2 make
2014-08-18 06:46:46 +00:00
apb
a44c2d1c74
Move the arbitrary limit on number of files per commit into
...
#define MAXARGS. The limit used to be 10000, but was changed to
1000000 earlier today.
2014-08-10 07:33:37 +00:00
tls
b9dfce9ac7
Relax arbitrary limit of 10,000 changed files per commit idiotically
...
introduced in CVS 1.11.17.
2014-08-10 07:09:51 +00:00
joerg
f933bdb0a3
Use sys/endian.h for bswapXX.
2014-02-20 02:09:58 +00:00
christos
bb76f57b5d
USE_SSP is not defined in bsd.sys.mk
2014-01-14 20:22:35 +00:00
christos
0eb00b5091
USE_SSP is defined in bsd.own.mk
2014-01-14 19:58:19 +00:00
christos
45dd466bd9
Don't use SIG_register to register a SIG_IGN handler. It thinks it registers
...
a fucntion, but then it ends up calling (*1)(13) with all signals blocked
so cvs spins (with all signal blocked, getting SEGV). Use plain signal instead
To reproduce: cvs log file | less and quit.
2013-11-07 20:09:55 +00:00
christos
f2361eace1
Ignore SIGPIPE; this is silly, we are getting EOF from a client, then while
...
processing the error SIGPIPE comes because the client closed the connection,
and then we end up calling error() while processing the error which prints
silly messages on the console because it logs with LOG_EMERG.
2013-10-30 14:25:47 +00:00
joerg
975a152cfc
If a library needs a symbol from another library, pull that library in
...
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.
2013-09-11 23:04:09 +00:00
christos
0854846045
When checking for membership in the system group file don't forget to check
...
the primary group of the user.
2013-05-09 15:25:44 +00:00
jakllsch
f8fc4eca22
Use LOG_ERR instead of LOG_EMERG, as LOG_EMERG causes syslogd to tell all
...
ttys.
2013-04-21 19:34:13 +00:00
christos
10f770acff
delete the assert as we'll never get there anyway.
2013-03-27 19:23:28 +00:00
christos
6046c6b246
Don't abort with an assertion when a directory cannot be found in a
...
repository. This could happen when someone copies from one directory
to another CVS files or when things get corrupted. Provide an explanatory
error message instead.
2013-03-27 18:15:13 +00:00
christos
fda8fa0063
- add more debugging
...
- don't return memory we did not allocate, which the caller will then free!
2012-10-03 22:28:20 +00:00
joerg
2b3d1ee8a7
Update LLVM/Clang snapshot to r164464. This adopts the GCC options for
...
the SSP parameters and a not-yet-default rewrite of SROA.
2012-09-23 17:22:22 +00:00
christos
f9c0aa05f4
Don't fail if we don't have a current_parsed_root, makes:
...
'echo version | cvs server'
work again.
2012-09-13 17:45:07 +00:00
jdf
3b4194fe31
Capitalize sentences.
...
Patch provided by Bug Hunting.
2012-06-12 21:01:10 +00:00
cheusov
8e6f0d9ebd
Add .include <bsd.sys.mk> for initializing USE_SSP.
...
This fixes build failure if USE_FORT=YES
Approved by christos@
2012-05-02 13:35:03 +00:00
joerg
b757af438b
Disable new -Wstring-plus-int warning where needed for now.
...
Adjust various places that add GCC-only options to check for the active
compiler first.
2012-04-04 10:59:44 +00:00
christos
69586eb894
From Garo Taft:
...
- Add a -w flag which will make the sanity script sleep for a second before
and after checkouts, commits, and updates.
- Fix expected output to look for the right default action on empty log
message. It's now "abort".
- Add new requests "Checkin-prog" and "Update-prog" to expectation values.
- Add new "access"âand "group" files to CVSROOT admin database expectation
values.
- All tests pass except client-20, which hangs.
2012-03-22 20:49:53 +00:00
christos
0dc6655837
Entries to the file contents need to be NULL terminated.
2012-03-13 17:12:30 +00:00
christos
f6d789ff18
remove statement with no effect.
2012-03-09 15:24:34 +00:00
christos
6799d6e664
add acl.c
2012-03-09 00:14:16 +00:00
christos
75e57c5640
refresh autoconf infrastructure so that it has a fighting chance to work
...
with something not from the previous decade.
NB: I should eventually put back the OS specific stuff I've removed so
that we can have a complete distribution.
2012-03-08 20:54:18 +00:00
christos
00f7e7b88f
prefer NULL over 0
2012-03-08 20:50:55 +00:00
christos
8182c8fa04
fix format string
2012-03-08 20:50:46 +00:00
christos
a3b3956a06
add cvs acl support
2012-03-08 20:50:26 +00:00
christos
286e174e7d
Don't use %n in the writable data segment. Fortified glibc complains. When
...
the left hand does not communicate with the right hand.
2012-03-08 20:49:29 +00:00
christos
6c8d7be65d
add acl support
2012-03-08 20:48:02 +00:00
christos
90cde42e32
- put back missing noexec check
...
- add cvs acl support
2012-03-08 20:47:45 +00:00
christos
9c245492c2
check symlink return
2012-03-08 20:47:17 +00:00
christos
99ced8ed96
add acl support
2012-03-08 20:46:59 +00:00
christos
e05cc624b8
in new format strings, formats are actually checked, so put tag commands in.
2012-03-08 20:46:35 +00:00
christos
09b7edcb8d
check chdir return
2012-03-08 20:46:08 +00:00
christos
8fb428a11a
- fix printf format string
...
- add acl support
2012-03-08 20:45:52 +00:00
christos
255af61e37
- add acl support
...
- document availability of tag commands.
2012-03-08 20:45:28 +00:00
christos
2d4ac8bd98
add acl prototype
2012-03-08 20:44:32 +00:00
christos
f029472951
add acl function prototype
2012-03-08 20:44:06 +00:00
christos
e5bacfa057
- better handling of binary files
...
- add acl support
2012-03-08 20:43:48 +00:00
christos
b33dfa11bd
use the result of strtoul
2012-03-08 20:43:19 +00:00
christos
9e721b8438
restore lost fix: add nolock
2012-03-08 20:42:56 +00:00
christos
e2e2a4ed11
attempt to fix the unit tests
2012-03-08 20:42:21 +00:00
christos
e76f287eda
- check return value of write(2)
...
- add acl support
2012-03-08 20:41:48 +00:00
christos
cde5019549
Add cvs acl support
2012-03-08 20:41:20 +00:00
christos
c520239488
- Put back %, which was removed from the new format strings
...
[with reversed meaning, so that we are still compatible with the new format]
- Fix format strings
2012-03-08 20:41:04 +00:00
christos
3046f895f0
add acl.c
2012-03-08 20:39:28 +00:00
christos
a24f5ebc91
fix malloc botches in the original code
2012-03-08 20:37:29 +00:00
christos
22d2af8da8
- restrict tag command to non-destructive operations for non-admins.
...
[deletion, moving is dissallowed]
- add history for tag commands
- cvs acl support
2012-03-08 20:34:35 +00:00
christos
25f203d228
- acl support
...
- check chdir return
2012-03-08 20:33:02 +00:00
christos
53edc8a562
acl support
2012-03-08 20:32:31 +00:00
christos
4872c424c4
announce acl support
2012-03-08 20:32:18 +00:00
christos
d246e6162a
add acl info
2012-03-08 20:30:38 +00:00
drochner
f9e6b678d8
add patch from Redhat bug#784141 which fixes a possible
...
buffer overflow if used with an HTTP proxy (CVE-2012-0804)
approved by releng
2012-02-09 16:28:53 +00:00
dholland
d716fa09ba
Remove stray file that appears to have come from the CVS distribution.
...
How it got here isn't entirely clear, but it's clear that it should go.
2012-01-24 22:40:20 +00:00
joerg
3a4dc84ff4
Don't use dangling elses.
2012-01-06 15:16:02 +00:00
mhitch
2c13773a38
Add logical drive device ld - a number of raid controllers provide these.
...
Also fix a typo/pasto when checking devices against devices/types in the
configuration file: use value from configuration, not the end of the
device_info table. Devices which aren't explicitly specified in the
device_info table can now be used by adding a type entry in the config
file.
2012-01-04 16:37:45 +00:00
wiz
372160b738
Document 'cvs rdiff -p'.
2011-09-24 12:02:58 +00:00
mrg
3f55311b0b
implement cvs rdiff -p. (someone please upate the manual for me :)
2011-09-24 11:37:27 +00:00
christos
2819a85a08
Allow init for new repository construction!
2011-07-29 18:47:11 +00:00
tsutsui
5fbf2258b9
Handle implicit library dependency for static builds:
...
- libheimbase is required by libkrb5
- libwind is required by libhx509
2011-06-04 02:08:50 +00:00
joerg
015f3042c3
Pull in report.c, 1.107 from upstream:
...
Use offsetof() macro and avoid defining dummy static union for FIELD()
macro. Makes it compilable by clang compiler.
2011-05-30 16:03:02 +00:00
joerg
a216da57a6
Default to -Wno-sign-compare -Wno-pointer-sign for clang.
...
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg
c219644b8d
Fix printing of time_t
2011-05-24 15:51:00 +00:00
christos
72b8fabea7
Add missing prototype.
2011-05-15 17:52:41 +00:00
christos
2c52b012a9
missing string.h
2011-05-15 01:16:29 +00:00
christos
3326babf00
copy from misc directory
2011-05-15 01:13:29 +00:00
matt
d4e4f7a60a
Use static libdm so dmsetup and lvm can be linked dynamically.
...
Change LIBDM_* to LIBDEVMAPPER_* so LIBDM can refer to libdm.
2011-03-04 22:48:29 +00:00
matt
accc87635b
Use LIBDPLIBS
2011-02-11 06:35:26 +00:00
rmind
8adab6527d
Build fix.
2011-02-08 10:45:40 +00:00
haad
0527bde829
Switch libdevmapper library to use libdm as it;s backend lib and do not
...
communicate with device-mapper directly. Our lvm stack now looks like this
lvm<->libdevmapper<->libdm<->dm where only libdm knows how our dm protocol
looks like.
No objections on tech-userlevel@.
2011-02-08 03:26:12 +00:00
haad
c73e2bf000
Use DM_DEVICE_CONTROL_MODE, because mapper/control device should have 660
...
and not 640 permissions.
2011-01-12 08:16:23 +00:00
haad
912a040b47
Allow operator to use lvm in read-only mode. Switch LVM lock dir to
...
/var/run/lvm and create it in rc.d/mountcritlocal. Fix dm control device
permissions to allow rw for operator.
Test if we are running lvm commands as operator and if that it's true do not
create vg backups and do not print confusing warning.
2011-01-05 14:57:27 +00:00
pgoyette
a12cad24be
Fix typo - let the build proceed
2010-12-30 00:46:38 +00:00
haad
d52c66bf4a
Fix my yesterday fix and finally make _get_dev_size recognise partition size
...
for device without DIOWEDGEINFO, where DIOCGDINFO is used. Patch tested by
Martin Mersberger.
2010-12-29 23:14:21 +00:00
christos
4817a0b0b8
real override for yacc rules.
2010-12-29 19:53:32 +00:00
haad
d26a38d370
Fix problem where chown was used on normal device in time when only
...
raw device was created. While here do some cleanup.
Problem find and reported by Martin Mersberger on current-users@.
2010-12-29 10:39:27 +00:00
haad
ca7dbf8cb5
Fix bug added by my last commit. This should fix
...
PR: bin/44286
Reported by: mlelstv@ and Martin Mersberger.
2010-12-29 00:14:04 +00:00
christos
017d3467b1
- don't forget to restore the umask on error.
...
- save and restore umask for control
- chown/chgrp for raw devices
2010-12-26 14:48:34 +00:00
haad
4c90c8eeab
Change way how we get device size from device. Do not use LSEEK but
...
DIOCGWEDGEINFO and DIOCGDINFO. This should fix problem with raidframe + lvm
reported by
Toby Karyadi on current-users@.
Thanks for reporting this issue.
2010-12-23 21:39:08 +00:00
christos
0318099292
PR/44267: Michael van Elst: LVM devices have wrong permissions
...
- Centralize CPPFLAGS for DM_DEVICE_{UID,GID,MODE}
- Make DM_DEVICE_GID operator DM_DEVICE_MODE 0640 to be more NetBSD like
- make all the code use DM_DEVICE_MODE instead of hard-coding.
- make sure that all mknod calls are followed by a chown call.
2010-12-23 17:46:54 +00:00
christos
3e6a896a34
false needs stdbool.h
2010-12-23 17:44:33 +00:00
mlelstv
07d2f05926
Get sector size from device properties using DIOCGDISKINFO and
...
use the disklabel (DIOCGDINFO) only as a fallback. This works
with wedges.
2010-12-23 14:46:25 +00:00
joerg
53ec7d85a6
Build xcvs without -g.
2010-12-18 04:23:26 +00:00
mrg
7246249458
re-add gawk 3.1.3's awk.texi
2010-12-13 06:21:53 +00:00
haad
16daab5dae
Fix /var/run/dev.db dependency by adding new get_dev_name routine which
...
converts raw device major:minor number to block device path. By reading
/dev and using stat to find block device major:minor numbers.
2010-03-12 16:24:40 +00:00
christos
229a6fd0df
make the default action abort for the empty log message; it used to be
...
continue. requested by joerg.
2010-02-19 23:50:55 +00:00
wiz
8f657e21de
Fix typo (specifed -> specified).
2010-02-18 14:00:39 +00:00
snj
875f862227
Properly replace @MKTEMP_SH_FUNCTION@, @MKTEMP@, and @SENDMAIL@.
...
Fixes PR bin/39629.
2009-12-29 06:00:35 +00:00
haad
ff3b5e1b34
Add support for building libdevmapper against RUMP.
2009-12-09 00:17:23 +00:00
haad
40681c67fa
Add support for building RUMP_ACTION libdevmapper which will build and link
...
libdevmapper with RUMP kernel and libdm(RUMP based device-mapper library).
This enables testing of dmsetup and libdevmapper with RUMP.
2009-12-09 00:15:51 +00:00
haad
2c73152555
Addapt libdevmapper library to new header file changes.
2009-12-05 11:42:24 +00:00
haad
980e89047e
Remove duplicated netbsd-dm.h file it is already installed in include/dev/dm.
...
Add own libddevmapper library header file libdm-netbsd.h.
2009-12-05 11:38:40 +00:00
haad
3d3166c313
Try to fix amd64 build.
2009-12-05 01:52:44 +00:00
haad
b49e6087b6
Add two more needed files dev-swap.c and unknown.c.
2009-12-02 01:54:20 +00:00
haad
0fa7e5a89a
Fix build, add missing symbols, remove unknown ioctls etc.
2009-12-02 01:53:25 +00:00
haad
447276ebab
Fix comment about running ./configure script.
2009-12-02 00:59:19 +00:00
haad
d685da8d62
Fix cinflicts created by import of latest lvm2tools LVM2-2-02-56.
2009-12-02 00:58:02 +00:00
haad
7c604eea85
Import of new version of lvm2tools LVM2-2-02-56.
2009-12-02 00:25:22 +00:00
haad
687f790f8f
Remove not needed debugging CFLAGS.
2009-12-01 23:12:51 +00:00
haad
f26bfe28da
Revert my commit which have added knowledge about dm targets to libdevmapper,
...
this breaks abstraction. Because only lvmtools/lvmlib and device-mapper can
have knowledge about target mapping and libdevmapper only passes requests
from lvmtools to kernel and back. Bump major library and driver version.
Requested by: yamt@
2009-12-01 23:12:09 +00:00
haad
cfa2bb1730
Revert my commit which added knowledge about dm targets to libdevmapper,
...
this breaks abstraction. Because only lvmtools/lvmlib and device-mapper can
have knowledge about target mapping and libdevmapper only passes requests
from lvmtools to kernel and back. Bump major library and driver version.
Requested by: yamt@
2009-12-01 23:11:17 +00:00
dsl
80ca15a6f8
Fix compressed server accesses.
...
According to http://cvs.savannah.gnu.org/viewvc/ccvs/src/?root=cvs
this was broken between revs 1.29 and 1.32 for a perion of 4 months
about 4 years ago.
Not sure at all why/how we have the broken version.
Our old code, the latest gnu code and this fix all differ slightly,
but have the same effect.
2009-11-27 18:38:29 +00:00
christos
bd1f9e6807
short-circuit yacc. We cannot make %pure-parser
2009-10-29 02:36:48 +00:00
christos
6deb2c22d2
we have getdelim and getline.
2009-10-19 01:24:19 +00:00
joerg
c954cd0eee
Only match raw devices. Only match against the char major as extracted
...
from the kernel. Prevents aliasing nwt0 and rwd0e. OK haad@
2009-10-16 21:00:41 +00:00
joerg
cb83818524
Fix markup.
2009-10-15 00:59:01 +00:00
apb
ecf07e7982
It's expected that config will be NULL in a cvs client, but not
...
in a server or with a local CVSROOT.
2009-09-05 12:50:33 +00:00
dholland
39ad663dea
Check group membership correctly; ingroup() returns a truth value, not a gid.
...
PR bin/41995.
2009-09-05 06:18:55 +00:00
haad
425cc847f0
Create default target_params parse routine which is called when we doesn't
...
find name of a target in known target list. This routine will pass whole param
string in a dictionary with key called params.
2009-06-09 18:29:09 +00:00
haad
869a99f661
Add const to second argument of nbsd_dm_parse_param, too.
2009-06-09 18:24:02 +00:00
haad
b05bf051db
Bump libdevmapper minor number, because of ioctl protocol change.
2009-06-05 20:11:21 +00:00
haad
3deb22c2eb
Parse dm param string in libdevmapper and not in a dm target init function.
...
Create proplib param dictionary entry in libdevmapper and pass it to dm in
dm_ioctl dict.
Param target is then passed to target init function, where is parse. I like
this aproach much better than passing char **argv and trusting to user input.
XXX. Add more sanity checks in kernel.
2009-06-05 19:57:25 +00:00
christos
fbb2acb8c2
change it from nonsense to english
2009-05-22 19:08:06 +00:00
tnn
ce13d3aef1
fix build, #ifdef -> #if (hi christos)
2009-05-22 18:44:16 +00:00
christos
d421f645e5
make this work for big endian machines too.
2009-05-22 17:51:26 +00:00
christos
9ee9e0d7de
bypass the .y -> .c rule for getdate.y
2009-05-03 17:13:07 +00:00
christos
b3737fd337
remove dup line.
2009-04-21 18:43:52 +00:00
christos
0b1f6791df
Fix LOCALID expansion (from Anon Ymous)
2009-04-21 17:27:50 +00:00
christos
00ca2326ad
regen.
2009-04-20 22:22:53 +00:00
christos
ac4b68d25e
Put back cvsstamp support. From Anon Ymous
2009-04-20 22:22:08 +00:00
christos
428488169d
put back -u
2009-04-20 17:13:42 +00:00
christos
2d265727f9
we don't need memrchr anymore.
2009-04-12 22:30:48 +00:00
christos
889c434e54
- fix bug with cvs group auth
...
- use our own getopt
- add config tests for optreset
2009-04-10 11:20:28 +00:00
christos
009831ecb0
Add getopt.c which got lost.
2009-04-08 21:57:15 +00:00
christos
4a1c940567
argh. try to make this portable across all NetBSD platforms.
2009-04-08 19:02:35 +00:00
christos
3039dd7cbb
fix closing paren
2009-04-08 17:24:55 +00:00
christos
0eb8ebe6b2
sorting ate a file.
2009-04-08 17:12:52 +00:00
christos
6b662a8eac
deal with LP64
2009-04-08 17:03:55 +00:00
christos
601e05914b
Hook cvs
2009-04-08 16:30:12 +00:00
christos
274254cdae
Port over NetBSD fixes:
...
- remove configure hooks to other os's
- handle symlinks in cvsroot
- configurable CVS local directory name
- unlock patch
- setxid patch (handle setuid CVS and drop privileges correctly)
- when __SSP__ avoid alloca
- admin commands in history
- programmable admin group
- always enforce admin group
- protocol independent network handling (handle ipv6)
- correct issue with wrong revision in resurrected files
- centralize cvs password cleanup in memory
- don't segv if we re-enter exit handlers
- more sprintf -> snprintf
- extra empty line in editor buffer
- alias 't' with 'T' in logmsg.c for compatibility
- alias config "LocalKeyword" with "tag" and "UserAdminOptions" with
"AdminOptions" for compatibility.
- disable Checking-prog and Update-prog for security
- take account of our current umask when computing the mode of files.
2009-04-08 16:27:51 +00:00