| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
|
|
|
|
|
|
|
| |
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
|
|
|
|
|
|
| |
Submitted by: Kenneth Merry <ken@plutotech.com>
Also, while here, mention that other FS's don't do flags.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it if flags were explicitly specified on the command line. Do not warn
if we were merely trying to preserve flags or remove UF_NODUMP. NFS does
not support flags.
I'm not sure that this is ideal, but it should do for now. Installing
a plain file onto a NFS server must work, we used to silently ignore the
attempt. Doing a binary install looses the flags anyway since cpio
doens't preserve them with the cdrom/network images.
XXX make world should not use flags or chown/chgrp in the obj/tmp area.
This is based on a suggestion from Ken Merry <ken@plutotech.com>.
|
|
|
|
|
|
|
|
|
|
|
|
| |
types. The NetBSD compatibility cruft was more correct for -current
than FreeBSD's own code. It just used NetBSD #defines instead of
string literals for the filesystem names. NetBSD's MOUNT_UFS is
"ffs", so using a literal "ufs" gives wrong results, but this is
unimportant, especially for bootstrapping.
Fixed style bugs in trymmap().
Fixed some disordered declarations.
|
|
|
|
| |
Typo fix.
|
|
|
|
|
|
| |
handy at the moment with -current's mmap+unlink interactions.. The
problems seem worst when using INSTALL="install -C" in /etc/make.conf.
This could well come in handy in the future too.
|
|
|
|
|
| |
headers during the port of FreeBSD to a NetBSD supported architecture.
FreeBSD needs to be able to install itself from very early on.
|
|
|
|
|
| |
2) Exit with error diagnostic if file exists but not a directory (-d)
3) Do chmod independently of chown (-d)
|
|
|
|
|
|
|
| |
2) When uid/gid not specified, not try to set 0:0 owner, just do nothing.
It makes possible to use install -d by users without setting
their uid:gid each time.
3) Be more specific where install_dir fails
|
|
|
|
|
|
|
|
| |
reopen it after strip has finished. This makes it work when
/usr/bin/strip replaces the file rather than doing an in-place edit
(such as the binutils-2.8 strip, which is a variation of objcopy).
This is necessary if install(1) and strip(1) are going to cooperate
on an ELF system.
|
|
|
|
| |
Cosmetic in man page.
|
|
|
|
|
|
|
|
| |
until the includes are installed, and it doesn't install the includes until
xinstall is built (the previous xinstall binary may not have -C). As a
bandaid, define MAP_FAILED ourselves if <sys/mman.h> didn't. Perhaps it
would be safer to simply disable mmap if all the prerequisites are not
there.
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use MAP_FAILED instead of the constant -1 to indicate
failure (required by POSIX).
- Removed flag arguments of '0' (required by POSIX).
- Fixed code which expected an error return of 0.
- Fixed code which thought any address with the high bit set
was an error.
- Check for failure where no checks were present.
Discussed with: bde
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
|
|
|
| |
Pointed out by: Bruce Evans <bde@zeta.org.au>
|
|
|
|
|
|
| |
Remove -S for the install usage message
Make the install usage message < 80 columns wide
Place the dodir declaration in order.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- Change the debug flag from -d to -D to avoid conflict with other
install programs.
- Update man page to reflect this
- Update usage string
-d meaning creat directory is specifically not implemented by these changes.
|
|
|
|
|
|
|
|
|
| |
copy.
Dont leave stray INS@xxxx temp files around, especially when installing
something less than 8MB and the destination runs out of space, etc.
It still doesn't clean up the temp files on SEGV or other signals etc.
|
|
|
|
| |
didn't rewind the files after the read()s in the non-mmap compare.
|
|
|
|
|
|
|
|
| |
installing. mmap'ing stuff over a nfs mount took out my machine during
a 'make world' last night while I was asleep. I started out with a list
of fs's to avoid, when I realised that I really didn't know which ones
were safe with mmap, so I went for the ones I knew and implemented a
fallback compare.
|
|
|
|
|
|
|
|
|
|
| |
installs something. This is not 100% right, since it has a false hit
when install -C snaps hard links.
Also, run strip(1) from the $PATH, otherwise you need a special version
of install to install (say) elf binaries which have a different strip.
With JDP's elfkit, the layout of the path determines which binary format
you are generating.
|
| |
|
|
|
|
| |
Pointed out by: somebody on the mailing list who's name i forgot
|
|
|
|
|
|
| |
allow the user to install using a Numeric GID or UID.
this brings it in to line with chgrp and chown, ans is required
by some people using FreeBSD in a product.
|
|
|
|
| |
Submitted by: Philippe Charnier <charnier@limrr.fr>
|
|
|
|
|
|
|
| |
The real fix requires changes to getpwent(3) and friends and getgrent(3)
and friends.
Submitted by: Tim Wilkinson
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
time of the target if the target file is the same as the source),
-d (debug), and -p (same as -C except for preserving the modification
time of the source if the target doesn't exists or is different from
the source.
Use library err() functions instead of our own and pass them better
exit codes.
Submitted by: wollman (and changed a lot by me)
|
| |
|
|
|
|
|
|
|
|
|
| |
stripping failed (since the file has been a shell script, for
example).
Closes PR # bin/645: "install -c -s" can't inst...
Submitted by: hohmuth@inf.tu-dresden.de (Michael Hohmuth)
|
|
|
|
| |
specified in the top level Makefiles.
|
|
|
|
|
|
|
| |
Submitted by:
Get the man page installed. Does anyone know the reason for the name
xinstall instead of install for this directory ? Would life more
easy to get this whole thing under install.
|
| |
|
|
|
|
| |
not get removed when running make install.
|
|
|
|
| |
to just install:, sperious targets and CLEANFILES removed.
|
|
|