| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
Notes:
svn path=/head/; revision=326025
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96
Notes:
svn path=/head/; revision=314436
|
| |
|
|
|
|
|
|
|
| |
Reported by: Coverity
CID: 1007203
MFC after: 1 week
Notes:
svn path=/head/; revision=300643
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The message text is from cp, which has had a nicer message for this since
2007 (PR bin/50656).
As with cp, the exit status changes from 64 to 1.
PR: 201083
MFC after: 1 week
Notes:
svn path=/head/; revision=284916
|
| |
|
|
| |
Notes:
svn path=/head/; revision=280386
|
| |
|
|
|
|
|
| |
This uses utimensat().
Notes:
svn path=/head/; revision=277645
|
| |
|
|
|
|
|
|
|
|
| |
the results.
Reviewed by: jilles
X-MFC-With: r267977
Notes:
svn path=/head/; revision=268129
|
| |
|
|
|
|
|
|
|
|
| |
and should be archived) and ignore error when we can't set it (e.g. NFS).
Reviewed by: ken
MFC after: 2 weeks
Notes:
svn path=/head/; revision=267977
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
u_long. Before this change it was of type int for syscalls, but prototypes
in sys/stat.h and documentation for chflags(2) and fchflags(2) (but not
for lchflags(2)) stated that it was u_long. Now some related functions
use u_long type for flags (strtofflags(3), fflagstostr(3)).
- Make path argument of type 'const char *' for consistency.
Discussed on: arch
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=248597
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
if (exists AND (NOT f_option) AND
((not_writable AND input_is_terminal) OR i_option))
prompt
in particular, add the test for input_is_terminal
PR: bin/173039
Submitted by: Mark Johnston <markjdb@gmail.com>
Approved by: cperciva
MFC after: 3 days
Notes:
svn path=/head/; revision=243072
|
| |
|
|
|
|
|
|
|
|
|
|
| |
symbolic link to a directory for the target as a symbolic link instead of
a directory. This makes it possible to atomically update a symbolic
link using rename().
Reviewed by: gj
MFC after: 2 weeks
Notes:
svn path=/head/; revision=239951
|
| |
|
|
|
|
|
|
|
| |
For these simple utilities, it doesn't harm to make all global variables
static. In fact, this allows the compiler to perform better forms of
optimisation and analysis.
Notes:
svn path=/head/; revision=226961
|
| |
|
|
| |
Notes:
svn path=/head/; revision=225954
|
| |
|
|
|
|
|
| |
Reviewed by: rwatson
Notes:
svn path=/head/; revision=196841
|
| |
|
|
|
|
|
| |
places.
Notes:
svn path=/head/; revision=180604
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and follow the letter of the POSIX specification.
- Moving a directory to an existing non-empty directory will now fail,
as required.
- Improve consistency and remove some style bugs of earlier versions.
This version passes all tests of tools/regression/bin/mv/regress.sh 1.6
Reviewed by: bde
MFC after: 1 month
Notes:
svn path=/head/; revision=174935
|
| |
|
|
|
|
|
|
|
| |
undefined behavior.
Noted by: alfred
Notes:
svn path=/head/; revision=174709
|
| |
|
|
|
|
|
|
|
| |
living across the vfork as volatile.
Noted by: kan
Notes:
svn path=/head/; revision=174667
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with the same name exists, delete that directory first, before performing
the copy. This ensures that mv(1) across devices follows the semantics
of rename(2), as required by POSIX.
This change could introduce the potential of data loss, even if the
copy fails, violating the atomicity properties of rename(2). This is
(mostly) mitigated by first renaming the destination and obliterating
it only after a succesfull copy.
The above logic also led to the introduction of code that will cleanup
the results of a partial copy, if a cross-device copy fails.
PR: bin/118367
MFC after: 1 month
Notes:
svn path=/head/; revision=174664
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This includes adding support for ACLs into cp(1) and mv(1) userspace
utilities.
For mv(1), if _PC_ACL_EXTENDED is in effect for the source AND destination
operands, the destination file's ACLs shall reflect the source.
For cp(1), if _PC_ACL_EXTENDED is in effect for both source and destination
operands, and -p has been specified, the ACLs from the source shall be
preserved on the destination.
MFC after: 1 month
Notes:
svn path=/head/; revision=149790
|
| |
|
|
|
|
|
|
|
|
| |
been used.
Submitted by: "Liam J. Foy" <liamfoy@sepulcrum.org>
Obtained from: DragonFlyBSD
Notes:
svn path=/head/; revision=146418
|
| |
|
|
| |
Notes:
svn path=/head/; revision=139969
|
| |
|
|
|
|
|
| |
OK'ed by: imp, core
Notes:
svn path=/head/; revision=127958
|
| |
|
|
|
|
|
|
|
|
|
|
| |
to a different file system.
Patch in PR was incorrect.
PR: bin/64430
Submitted by: Samuel Tardieu
MFC after: 3 days
Notes:
svn path=/head/; revision=127272
|
| |
|
|
|
|
|
| |
Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
Notes:
svn path=/head/; revision=114763
|
| |
|
|
| |
Notes:
svn path=/head/; revision=114433
|
| |
|
|
|
|
|
| |
Approved by: obrien, sheldonh (mentor).
Notes:
svn path=/head/; revision=99678
|
| |
|
|
|
|
|
|
|
|
|
|
| |
a "--" argument after the options so filenames with leading dashes are
handled correctly.
PR: 39318
Submitted by: Serge van den Boom <svdb@stack.nl>
MFC after: 1 week
Notes:
svn path=/head/; revision=98280
|
| |
|
|
|
|
|
| |
CURRENT <paths.h>.
Notes:
svn path=/head/; revision=96806
|
| |
|
|
| |
Notes:
svn path=/head/; revision=92974
|
| |
|
|
| |
Notes:
svn path=/head/; revision=92935
|
| |
|
|
| |
Notes:
svn path=/head/; revision=91085
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move group_from_gid to grp.h
Remove from stdlib.h
Make the prototypes match the code
Fix rm and mv to include new files.
NetBSD has these defined in those files, and others too that I've not
done.
Approved by: terminal room kabal
Reviewed by: jhb, phk
Notes:
svn path=/head/; revision=90644
|
| |
|
|
| |
Notes:
svn path=/head/; revision=90114
|
| |
|
|
|
|
|
|
|
|
|
|
| |
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
Notes:
svn path=/head/; revision=90110
|
| |
|
|
|
|
|
| |
Idea from: Theo de Raadt <deraadt@openbsd.org>
Notes:
svn path=/head/; revision=79452
|
| |
|
|
| |
Notes:
svn path=/head/; revision=77409
|
| |
|
|
|
|
|
|
|
| |
warnings.
MFC after: 1 week
Notes:
svn path=/head/; revision=76878
|
| |
|
|
|
|
|
|
| |
Requested by: FUJISHIMA Satsuki <k5@cheerful.com>
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=63680
|
| |
|
|
|
|
|
|
|
|
|
|
| |
on different file systems.
PR: bin/12375
Submitted by: Takashi SHIRAI <shirai@nintendo.co.jp>
No response by: steve
No problem with: building 5-current world
Notes:
svn path=/head/; revision=63225
|
| |
|
|
|
|
|
|
|
|
| |
a file. This fixes moving symlinks across partitions.
PR: 17847
Reviewed by: bde
Notes:
svn path=/head/; revision=62963
|
| |
|
|
| |
Notes:
svn path=/head/; revision=50544
|
| |
|
|
| |
Notes:
svn path=/head/; revision=50471
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=40301
|
| |
|
|
| |
Notes:
svn path=/head/; revision=37245
|
| |
|
|
|
|
|
| |
Obtained from or inspired by: A similar change in OpenBSD by theo
Notes:
svn path=/head/; revision=36785
|
| |
|
|
|
|
|
|
|
| |
is already one there.
PR: 3025
Notes:
svn path=/head/; revision=36383
|
| |
|
|
| |
Notes:
svn path=/head/; revision=36049
|
| |
|
|
|
|
|
|
|
|
|
|
| |
> Error out if someone tries to mv a mount point. Old behavior was to
> move all files contained in the mounted filesystem to the dest. dir
> which could be quite nasty. Personally, I think rename(2) should
> return EPERM or EINVAL instead of EXDEV.
Obtained from: OpenBSD mv.c rev 1.6 by Todd Miller <millert@openbsd.org>
Notes:
svn path=/head/; revision=31664
|
| |
|
|
|
|
|
| |
Pointed out by bde.
Notes:
svn path=/head/; revision=30727
|